About Ad Tag

Article author
Knorex Support
  • Updated

Ad tag is a code snippet usually in JavaScript that is placed individually into different ad inventory space(s) on which your creatives are displayed. With this tag, Knorex captures the activities, engagements, and intentions of visitors navigating through different publishers and multiple traffic sources. 

Creative ad tags are used to direct viewers towards the creative displayed and save your time to edit directly from the server and not via individual publishers.

XPO ad tag uses asynchronous mode, which does not slow the loading time of your creatives displayed in multiple publishing sites. 

 

1. Non-Expandable Creative Ad Tag

Click here to learn how to generate these ad tags via XPO Admin Dashboard.

There are 2 formats (Javascript and iFrame) of ad tags that you can use; each format operates in 2 options/modes:

  • Normal mode: the creative size is fixed and will not change with different devices
  • Adaptive mode: the creative size will adapt and adjust to the different screen sizes available

Javascript Ad Tag

Both Normal and Adaptive modes are automatically supported in the same tag.

<script type='text/javascript' src='//sv.brand-display.com/adedge/api/bd/serving/simple/js?aukey=<adtag_id>'></script>

 

iFrame Tag

for Normal mode

<iframe frameborder=0 scrolling=no width="300" height="250" src="//sv.brand-display.com/adedge/api/bd/serving/simple/frame?aukey=<adtag_id>"></iframe>

 

for Adaptive mode

<iframe frameborder=0 scrolling=no width="100%" height="250" src="//sv.brand-display.com/adedge/api/bd/serving/simple/frame?aukey=<adtag_id>"></iframe>

 

You can set these options in the CMS. If you choose to use JavaScript ad tag, you don't need to make any change when switching between normal vs adaptive mode. However, if you choose to use the IFrame ad tag, you would need to update switching between normal and adaptive mode requires you to update the ad tag.

 

Enabling Macros For Non-Expandable Creative Ad Tag

Ad tags can handle DFP click macros, DBM click macros, view-through macros, and custom macros from other systems.

A. Enabling DFP Click Macros

DFP click macro name is “click”, and the placeholder is “ %%CLICK_URL_ESC_ESC%% ”.

We expect the value of click macro to be escaped twice. For instance, if the click URL is http://example.com/click, the macro value should be “http%253A//example.com/click”.

Javascript Tag

<script type='text/javascript' src=‘//sv.brand-display.com/adedge/api/bd/serving/simple/js?aukey=<adtag_id>&_=%%CACHEBUSTER%%&click=%%CLICK_URL_ESC_ESC%%&ct=click'></script>

iFrame Tag
<iframe frameborder=0 scrolling=no width="300" height="250" src="//sv.brand-display.com/adedge/api/bd/serving/simple/frame?aukey=<adtag_id>&_=%%CACHEBUSTER%%&click=%%CLICK_URL_ESC_ESC%%&ct=click"></iframe>


B. Enabling DBM Click Macros

DBM click macro name is “click”, and the placeholder is “${CLICK_URL} or ${CLICK_URL_ESC_ESC}”.

We expect the value of click macro to be encoded or escaped twice. For instance, if the click URL is http://example.com/click, the macro value should be “http%253A//example.com/click”.

Javascript Tag with Click Macro escaped twice

<script type='text/javascript' src=‘//sv.brand-display.com/adedge/api/bd/serving/simple/js?aukey=<adtag_id>&_=%%CACHEBUSTER%%&click=${CLICK_URL_ESC_ESC}&ct=click'></script>

Javascript Tag with Click Macro encoded

<script type='text/javascript' src=‘//sv.brand-display.com/adedge/api/bd/serving/simple/js?aukey=<adtag_id>&_=%%CACHEBUSTER%%&click=${CLICK_URL}&ct=click'></script>

iFrame Tag with Click Macro escaped twice

<iframe frameborder=0 scrolling=no width="300" height="250" src="//sv.brand-display.com/adedge/api/bd/serving/simple/frame?aukey=<adtag_id>&_=%%CACHEBUSTER%%&click=%%CLICK_URL_ESC_ESC%%&ct=click"></iframe>

iFrame Tag with Click Macro encoded

<iframe frameborder=0 scrolling=no width="300" height="250" src="//sv.brand-display.com/adedge/api/bd/serving/simple/frame?aukey=<adtag_id>&_=%%CACHEBUSTER%%&click=${CLICK_URL}&ct=click"></iframe>


C. Enabling Third-Party Click Macros

DBM click macro name is “click”, and the placeholder is “${CLICK_URL} or ${CLICK_URL_ESC} or  ${CLICK_URL_ESC_ESC}”.

We expect the value of click macro to be encoded or escaped once or escaped twice. For instance, click URL is http://example.com/click, the macro value should be “http%253A//example.com/click”.

Javascript Tag with Click Macro escaped once

<script type='text/javascript' src=‘//sv.brand-display.com/adedge/api/bd/serving/simple/js?aukey=<adtag_id>&_=%%CACHEBUSTER%%&click=${CLICK_URL_ESC}&ct=click'></script>

Javascript Tag with Click Macro escaped twice
<script type='text/javascript' src=‘//sv.brand-display.com/adedge/api/bd/serving/simple/js?aukey=<adtag_id>&_=%%CACHEBUSTER%%&click=${CLICK_URL_ESC_ESC}&ct=click'></script>

Javascript Tag with Click Macro encoded
<script type='text/javascript' src=‘//sv.brand-display.com/adedge/api/bd/serving/simple/js?aukey=<adtag_id>&_=%%CACHEBUSTER%%&click=${CLICK_URL}&ct=click'></script>

iFrame Tag with Click Macro escaped once
<iframe frameborder=0 scrolling=no width="300" height="250" src="//sv.brand-display.com/adedge/api/bd/serving/simple/frame?aukey=<adtag_id>&_=%%CACHEBUSTER%%&click=%%CLICK_URL_ESC%%&ct=click"></iframe>


iFrame Tag with Click Macro escaped twice

<iframe frameborder=0 scrolling=no width="300" height="250" src="//sv.brand-display.com/adedge/api/bd/serving/simple/frame?aukey=<adtag_id>&_=%%CACHEBUSTER%%&click=%%CLICK_URL_ESC_ESC%%&ct=click"></iframe>


iFrame Tag with Click Macro encoded

<iframe frameborder=0 scrolling=no width="300" height="250" src="//sv.brand-display.com/adedge/api/bd/serving/simple/frame?aukey=<adtag_id>&_=%%CACHEBUSTER%%&click=${CLICK_URL}&ct=click"></iframe>

 

 

2. Expandable Creative Ad Tag

You can generate these ad tags from Knorex XPO™.

  • Normal mode: the creative size is fixed and will not change with different devices
  • Adaptive mode: the creative size will adapt and adjust to the different screen sizes available

You can set these options in the CMS.

However, switching between these two options does not incur any changes in the ad tag. For the expandable ad tag, we have only JavaScript tag.


Javascript Tag

<div id=“c52e2a1d5ece78524502"></div> <script type='text/javascript' src='//sv.brand-display.com/adedge/api/bd/serving/simple/js2?aukey=<adtag_id>'></script>


Enabling Macros For Expandable Creative Ad Tag

A. Enabling DFP Click Macros

DFP click macro name is “click”, and the placeholder is “%%CLICK_URL_ESC_ESC%%”.

We expect the value of click macro to be escaped twice. For instance, click URL is http://example.com/click, the macro value should be “http%253A//example.com/click”.


Javascript Tag 

<div id="c52e2a1d5ece78524502"></div><script type='text/javascript' src='//sv.brand-display.com/adedge/api/bd/serving/simple/js2?aukey=<adtag_id>&_=%%CACHEBUSTER%%&wrap=c52e2a1d5ece78524502&click=%%CLICK_URL_ESC_ESC%%&ct=click'></script>

 


B. Enabling DBM Click Macros

DBM click macro name is “click”, and the placeholder is “${CLICK_URL} or ${CLICK_URL_ESC_ESC}”.

We expect the value of click macro to be encoded or escaped twice. For instance, click URL is http://example.com/click, the macro value should be “http%253A//example.com/click”.

 Javascript Tag with Click Macro escaped twice

<div id="c52e2a1d5ece78524502"></div><script type='text/javascript' src='//sv.brand-display.com/adedge/api/bd/serving/simple/js2?aukey=<adtag_id>&_=%%CACHEBUSTER%%&wrap=c52e2a1d5ece78524502&click=${CLICK_URL_ESC_ESC}&ct=click'></script>

Javascript Tag with Click Macro encoded
<div id="c52e2a1d5ece78524502"></div><script type='text/javascript' src='//sv.brand-display.com/adedge/api/bd/serving/simple/js2?aukey=<adtag_id>&_=%%CACHEBUSTER%%&wrap=c52e2a1d5ece78524502&click=${CLICK_URL}&ct=click'></script>


C. Enabling Third-Party Click Macros 

DBM click macro name is “click”, and the placeholder is “${CLICK_URL} or ${CLICK_URL_ESC_ESC}”.

We expect the value of click macro to be encoded or escape once or escaped twice. For instance, click URL is http://example.com/click, the macro value should be “http%253A//example.com/click”.

Javascript Tag with Click Macro escaped once

<div id="c52e2a1d5ece78524502"></div><script type='text/javascript' src='//sv.brand-display.com/adedge/api/bd/serving/simple/js2?aukey=<adtag_id>&_=%%CACHEBUSTER%%&wrap=c52e2a1d5ece78524502&click=${CLICK_URL_ESC}&ct=click'></script>

Javascript Tag with Click Macro escaped twice
<div id="c52e2a1d5ece78524502"></div><script type='text/javascript' src='//sv.brand-display.com/adedge/api/bd/serving/simple/js2?aukey=<adtag_id>&_=%%CACHEBUSTER%%&wrap=c52e2a1d5ece78524502&click=${CLICK_URL_ESC_ESC}&ct=click'></script>

Javascript Tag with Click Macro encoded
<div id="c52e2a1d5ece78524502"></div><script type='text/javascript' src='//sv.brand-display.com/adedge/api/bd/serving/simple/js2?aukey=<adtag_id>&_=%%CACHEBUSTER%%&wrap=c52e2a1d5ece78524502&click=${CLICK_URL}&ct=click'></script>

Was this article helpful?

0 out of 0 found this helpful

Have more questions? Submit a request

Comments

0 comments

Article is closed for comments.

Didn't find what you were looking for?

Submit a request