Serve Third-Party Banners with Adform Ad Server

Greta
Greta
  • Updated

You can use Adform Ad Server to host and serve banners for campaigns you run in third-party DSPs and Ad Servers. To track clicks correctly, you need to modify the banner tags before adding them to the third-party system.

Set Up Click Tracker

To track clicks:

  1. Create a click counter in your third-party ad server or DSP (example: http://www.youradsystem.com/?redirect=).

  2. Insert ;click= and http://www.youradsystem.com/?redirect= into the redirect string.

    Examples:

    ;click=http://www.youradsystem.com/?redirect=

    <a href="http://www.youradsystem.com/?redirect=http://track.adform.net/C/...";

    Note

    If you want to encode the Adform click tracker to replace some symbols to a different form, use ;encodedclick= instead of ;click=.

The resulting tag should look similar to the following example:

<script language="javascript" src="http://track.adform.net/adfscript/?bn=14966567;gdpr=${GDPR};gdpr_consent=${GDPR_CONSENT_50};click=http://www.youradsystem.com/?redirect="></script>; <noscript> <a href="http://www.youradsystem.com/?redirect=http://track.adform.net/C/?bn=14966567;C=0" target="_blank">   <img src="http://track.adform.net/adfserve/?bn=14966567;srctype=4;ord=yourrandomnumber" border="0" width="468" height="60" alt=""></a> </noscript>

"http://www.youradsystem.com/?redirect=http://track.adform.net/C/" is an example of a redirect URL. It redirects to Adform, and Adform counts clicks and redirects to final landing page defined in Adform platform.

By inserting ";click=http://www.youradsystem.com/?redirect=" in the Adform javascript tag, the Adform system returns an ad which (when clicked) redirects to your ad management system or third-party ad server, which again redirects to Adform where the final redirect is performed according to the settings defined in the Adform platform.

Special Implementation Cases

There are a few additional parameters you can include in the click tracker to track specific events on the website.

Application Loading Screen Ads

To track whether the tag is implemented on the loading screen of the mobile app, insert ;loadingscreen=1 parameter into the tag URL:

<script language="javascript" src="//track.adform.net/adfscript/?bn=14966567;loadingscreen=1"></script>

Autorefreshed Pages

To track whether the auto-refresh is implemented on the page, insert ;autorefresh=1 parameter into the tag URL:

<script language="javascript" src="//track.adform.net/adfscript/?bn=14966567;autorefresh=1"></script>

Video Auto-Play

To track whether the video ad has started automatically, insert ;autoplay=<value> into the tag URL.

Types of accepted values:

  • autoplay=0: Should be used when click to play video event is used.

<script language="javascript" src="//track.adform.net/videoad/?bn=123456789&autoplay=0"></script>
  • autoplay=1: Should be used when a video player starts playing the stream automatically.

<script language="javascript" src="//track.adform.net/videoad/?bn=123456789&autoplay=1"></script>

Video Continuous Play

To track whether the video ad has been played in a continuous play mode, insert ;continuousplay=1 parameter into the tag URL:

<script language="javascript" src="//track.adform.net/videoad/?bn=123456789&continuousplay=1"></script>

Iframe Tags

Iframe tag is an Adform tag, where Adform banner is delivered within iframe, which has a dedicated space that can't be occupied by any other banner. In such a case, Adform tag can't impact the website in any way, so the rich media functionality such as expanding ads or floating ads are not supported. To track clicks for redirect URL in Iframes, insert ";click=" and "http://www.youradsystem.com/?redirect=" into the redirect string.

You should also exchange the Timestamp variable for your random number.

<iframe name="CPbanner871552" src="http://track.adform.net/adfscript/?bn=14966567;gdpr=${GDPR};gdpr_consent=${GDPR_CONSENT_50};click=http://www.youradsystem.com/? redirect=;cpjs=2;ord=YourRandomNumber" width="980" height="150" marginwidth="0" marginheight="0" hspace="0" vspace="0"  frameborder="0" scrolling="no"></iframe> 

Purchased Traffic Signaling

To signal that the tag is executed by traffic that is purchased (vs. organic), an additional parameter needs to be added to the tag. To do that, insert ;purchased=1 into the tag URL:

<script language="javascript" src="//track.adform.net/adfscript/?bn=14966567;purchased=1"></script>

Third-Party System Examples

AdOcean Example

To track clicks, add the ";click=" and <%%REDIR%%> into the redirect string as shown below. Change [timestamp] with <%%unique%%>.

<script language="javascript" src="http://track.adform.net/adfscript/?bn=14966567;gdpr=${GDPR};gdpr_consent=${GDPR_CONSENT_50};click=<%%REDIR%%>"></script>; <noscript>  <a href="<%%REDIR%%>http://track.adform.net/c/?bn=14966567;c=0" target="_blank">   <img src="http://track.adform.net/adfserve/?bn=14966567;srctype=4;ord=<%%unique%%>" border="0" width="468" height="60" alt="">  </a> </noscript>

Note

This describes the usage of external systems. Please check the respective documentation for the most up-to-date date information.

AdSpeed Example

To track clicks, add the ";click=" and [ASClickTrackerRaw] into the redirect string as below.

<script language="javascript" src="http://track.adform.net/adfscript/?bn=14966567;gdpr=${GDPR};gdpr_consent=${GDPR_CONSENT_50};click=[ASClickTrackerRaw]"></script> <noscript>      <a href="[ASClickTrackerRaw]http://track.adform.net/c/?bn=14966567;c=0" target="_blank">   <img src="http://track.adform.net/adfserve/?bn=14966567;srctype=4;ord=[timestamp]" border="0" width="468" height="60" alt=""> </a> </noscript>

Note

This describes the usage of external systems. Please check the respective documentation for the most up-to-date date information.

Appnexus (Xandr)

To track clicks, add the ";encodedclick=" and ${CLICK_URL} into the redirect string as below. [timestamp] is exchanged for ${CACHEBUSTER}.

<script language="javascript" src="http://track.adform.net/adfscript/?bn=14966567;gdpr=${GDPR};gdpr_consent=${GDPR_CONSENT_50};encodedclick=${CLICK_URL}"></script> <noscript>  <a href="${CLICK_URL}http://track.adform.net/c/?bn=14966567;c=0" target="_blank">   <img src="http://track.adform.net/adfserve/?bn=14966567;srctype=4;ord=${CACHEBUSTER}" border="0" width="468" height="60" alt=""> </a> </noscript>

Note

This describes the usage of external systems. Please check the respective documentation for the most up-to-date date information.

Dart Tag Example

To track clicks, add the ";click=" and %c into the redirect string as below. [timestamp] is exchanged for %n.

<script language="javascript" src="http://track.adform.net/adfscript/?bn=14966567;gdpr=${GDPR};gdpr_consent=${GDPR_CONSENT_50};click=%c"></script>; <noscript>  <a href="%chttp://track.adform.net/c/?bn=14966567;c=0" target="_blank">   <img src="http://track.adform.net/adfserve/?bn=14966567;srctype=4;ord=%n" border="0" width="468" height="60" alt="">  </a> </noscript> 

Note

This describes the usage of external systems. Please check the respective documentation for the most up-to-date date information.

DBM Example

To track clicks, add the ";click=" and ${CLICK_URL} into the redirect string as below. [timestamp] is exchanged for ${CACHEBUSTER}.

<script language="javascript" src="http://track.adform.net/adfscript/?bn=14966567;gdpr=${GDPR};gdpr_consent=${GDPR_CONSENT_50};click=${CLICK_URL}"></script><noscript>  <a href="${CLICK_URL}http://track.adform.net/c/?bn=14966567;c=0" target="_blank">   <img src="http://track.adform.net/adfserve/?bn=14966567;srctype=4;ord=${CACHEBUSTER}" border="0" width="468" height="60" alt="">  </a> </noscript> 

Note

This describes the usage of external systems. Please check the respective documentation for the most up-to-date date information.

Doubleclick for Publishers

To track clicks in DFP, add the parameter ";click=" and %%CLICK_URL_UNESC%% into the redirect string. [timestamp] is exchanged for %%CACHEBUSTER%%.

Modified tag would look like:

<script language="javascript" src="https://track.adform.net/adfscript/?bn=14966567;gdpr=${GDPR};gdpr_consent=${GDPR_CONSENT_50};click=%%CLICK_URL_UNESC%%"></script><noscript>;  <a href="%%CLICK_URL_UNESC%%https://track.adform.net/C/?bn=14966567;C=0" target="_blank">   <img src="https://track.adform.net/adfserve/?bn=14966567;srctype=4;ord=%%CACHEBUSTER%%" border="0" width="468" height="60" alt=""> </a> </noscript> 

Note

This describes the usage of external systems. Please check the respective documentation for the most up-to-date date information.

EmediateAd Tag Example

To track clicks, add the ";click=" and EASLink= parameters into the redirect string as below. [timestamp] is exchanged for _U_.

<script language="javascript" src="http://track.adform.net/adfscript/?bn=14966567;gdpr=${GDPR};gdpr_consent=${GDPR_CONSENT_50};click=EASLink="></script>; <noscript>  <a href="EASLink=http://track.adform.net/c/?bn=14966567;c=0" target="_blank">   <img src="http://track.adform.net/adfserve/?bn=14966567;srctype=4;ord=_U_" border="0" width="468" height="60" alt=""> </a> </noscript>

Note

This describes the usage of external systems. Please check the respective documentation for the most up-to-date date information.

Helios IQ Example

To track clicks, add the ";click=" and _ADCLICK_ into the redirect string as below. [timestamp] is exchanged for _ADTIME_.

<script language="javascript" src="http://track.adform.net/adfscript/?bn=14966567;gdpr=${GDPR};gdpr_consent=${GDPR_CONSENT_50};click=_ADCLICK_"></script>; <noscript>  <a href="_ADCLICK_http://track.adform.net/c/?bn=14966567;c=0" target="_blank">   <img src="http://track.adform.net/adfserve/?bn=14966567;srctype=4;ord=_ADTIME_" border="0" width="468" height="60" alt=""> </a> </noscript> 

Note

This describes the usage of external systems. Please check the respective documentation for the most up-to-date date information.

Newtention Example

To track clicks, add the ";click=" and ${click_plain} into the redirect string as shown below. [timestamp] variable is exchanged for ${random}.

<script language="javascript" src="http://track.adform.net/adfscript/?bn=14966567;gdpr=${GDPR};gdpr_consent=${GDPR_CONSENT_50};click=${click_plain}"></script> <noscript> <a href="${click_plain}http://track.adform.net/C/?bn=14966567;C=0" target="_blank">   <img src="http://track.adform.net/adfserve/?bn=14966567;srctype=4;ord=${random}" border="0" width="300" height="250" alt=""/> </a> </noscript> 

Note

This describes the usage of external systems. Please check the respective documentation for the most up-to-date date information.

OpenX Example

To track clicks is add the ";click=" and {clickurl} into the redirect string as below. [timestamp] is exchanged for {random}.

<script language="javascript" src="http://track.adform.net/adfscript/?bn=14966567;gdpr=${GDPR};gdpr_consent=${GDPR_CONSENT_50};click={clickurl}"></script> <noscript> <a href="{clickurl}http://track.adform.net/c/?bn=14966567;c=0" target="_blank">   <img src="http://track.adform.net/adfserve/?bn=14966567;srctype=4;ord={random}" border="0" width="468" height="60" alt=""> </a> </noscript>

Note

This describes the usage of external systems. Please check the respective documentation for the most up-to-date date information.

Real Media Example

To track clicks, add the ";click=" and %%C%%?_RM_REDIR_= into the redirect string as below. [timestamp] is exchanged for %%REALRAND%%.

<script language="javascript" src="http://track.adform.net/adfscript/?bn=14966567;gdpr=${GDPR};gdpr_consent=${GDPR_CONSENT_50};click=%%C%%?_RM_REDIR_="></script>; <noscript>  <a href="%%C%%?_RM_REDIR_=http://track.adform.net/c/?bn=14966567;c=0" target="_blank">   <img src="http://track.adform.net/adfserve/?bn=14966567;srctype=4;ord=%%REALRAND%%" border="0" width="468" height="60" alt=""> </a> </noscript>

Note

This describes the usage of external systems. Please check the respective documentation for the most up-to-date date information.

Smadex Example

To track clicks, add the ";click=" and {$CLICK_TRACK_URL$} into the redirect string as below. [timestamp] is exchanged for {%timestamp%}.

<script language="javascript" src="https://track.adform.net/adfscript/?bn=14966567;gdpr=${GDPR};gdpr_consent=${GDPR_CONSENT_50};encodedclick={$CLICK_TRACK_URL$}&redirect_url="></script> <noscript><a href="{$CLICK_TRACK_URL$}&redirect_url=https://track.adform.net/C/?bn=14966567;C=0" target="_blank"> <img src="https://track.adform.net/adfserve/?bn=14966567;srctype=4;ord={$timestamp$}" border="0" width="468" height="60" alt=""> </a></noscript>

Note

This describes the usage of external systems. Please check the respective documentation for the most up-to-date date information.

Smart AdServer

To track clicks, add the ";click=" and [countgo] into the redirect string as below.

<script language="javascript" src="http://track.adform.net/adfscript/?bn=14966567;gdpr=${GDPR};gdpr_consent=${GDPR_CONSENT_50};click=[countgo]"></script> <noscript> <a href="[countgo]http://track.adform.net/c/?bn=14966567;c=0" target="_blank">   <img src="http://track.adform.net/adfserve/?bn=14966567;srctype=4;ord=[timestamp]" border="0" width="468" height="60" alt=""></a> </noscript> 

Note

This describes the usage of external systems. Please check the respective documentation for the most up-to-date date information.

TradeDoubler Example

To track clicks, add the ";click=" and $$&url= into the redirect string as below. [timestamp] is exchanged for [TD_RRANDOM].

<script language="javascript" src="http://track.adform.net/adfscript/?bn=14966567;gdpr=${GDPR};gdpr_consent=${GDPR_CONSENT_50};click=click=$$&url="></script><noscript>  <a href="$$&url=http://track.adform.net/c/?bn=14966567;c=0" target="_blank">   <img src="http://track.adform.net/adfserve/?bn=14966567;srctype=4;ord=[TD_RRANDOM]" border="0" width="468" height="60" alt=""> </a> </noscript> 

Note

This describes the usage of external systems. Please check the respective documentation for the most up-to-date date information.

Turn Example

To track clicks, add the ";click=" and XXCLICK_FORM_URL[]XX into the redirect string as below. [timestamp] is exchanged for $!{AD_CALL_ID}.

<script language="javascript" src="http://track.adform.net/adfscript/?bn=14966567;gdpr=${GDPR};gdpr_consent=${GDPR_CONSENT_50};click=XXCLICK_FORM_URL[]XX"></script> <noscript>      <a href="XXCLICK_FORM_URL[]XXhttp://track.adform.net/c/?bn=14966567;c=0" target="_blank">   <img src="http://track.adform.net/adfserve/?bn=14966567;srctype=4;ord=$!{AD_CALL_ID}" border="0" width="468" height="60" alt=""></a> </noscript> 

Note

This describes the usage of external systems. Please check the respective documentation for the most up-to-date date information.

Zedo Example

To track clicks, add the ";click=" and %ZZECLICK% into the redirect string as below. [timestamp] is exchanged for %t.

<script language="javascript" src="http://track.adform.net/adfscript/?bn=14966567;gdpr=${GDPR};gdpr_consent=${GDPR_CONSENT_50};click=%ZZECLICK%"></script><noscript>;  <a href="%ZZECLICK%http://track.adform.net/c/?bn=14966567;c=0" target="_blank">   <img src="http://track.adform.net/adfserve/?bn=14966567;srctype=4;ord=%t" border="0" width="468" height="60" alt=""> </a> </noscript> 

Note

This describes the usage of external systems. Please check the respective documentation for the most up-to-date date information.

Was this article helpful?

/
How we can make it better?

Thank you for your feedback!