Pontiac Wiki Pontiac Wiki

Creative Macros

Creative Macros

  • Macros for All Impressions
  • Macros for Video Impressions
  • Macros for Mobile Impressions
  • Privacy Macros
  • Function Macros
  • Macro Implementation Recommendations & Examples
  • Encoding Examples
  • Macro ID Mapping
  1. Home
  2. Origin Documentation
  3. Creative Macros

Macros for All Impressions

Click Tracking Macros

MACRO DESCRIPTION
${CLICK_URL_ENC}The encoded click tracking URL (only necessary for some third-party ad servers).
${CLICK_URL}

The click tracking URL.

Additional Macros

The macros below may be used in creative URLs or landing page URLs.

MACRODESCRIPTION
${ADV_CODE}The code of the advertiser to which the creative belongs.
${ADV_FREQ}The total number of impressions seen by a user across all advertiser campaigns.
${ADV_ID}The ID of the advertiser to which the creative belongs.
${AGE}The age of the user (if available). Integer or 0.
${AUCTION_ID}The 64-bit character string representing the individual auction that led to the impression.
${BID_PRICE}The first price bid for this impression, as opposed to the price paid after price reduction.
${CACHEBUSTER}A random number string used to limit caching of the URL.
${CPG_CODE}The line item code of the served impression.
${CPG_ID}The line item ID of the served impression.
${CP_CODE}The campaign code of the served impression.
${CP_ID}The campaign ID of the served impression.
${CREATIVE_CODE}The code of the creative served (if available).
${CREATIVE_ID}The creative ID that won the impression.
${CREATIVE_SIZE}The width and height of the creative served (e.g., “300×250”).
${CUSTOM_MODEL_ID}The id of the custom model used in the auction. When no custom model is used, this defaults to 0. This Custom Macro will function for clients in the APB Alpha Test only.
${CUSTOM_MODEL_LAST_MODIFIED}The date and time (in Unix Epoch time) since the custom model that was used in the auction was last modified. If no model was used, this defaults to 0. This Custom Macro will function for clients in the APB Alpha Test only.
${CUSTOM_MODEL_LEAF_NAME}The leaf_name specified in the leaf that determined the winning bid. If no name is specified, or if a model was not used, this defaults to —. (This aligns with the field in the Standard Feed, leaf_name) This Custom Macro will function for clients in the APB Alpha Test only.
${DATACENTER}Data center ID (1 = NYM, 2 = LAX, 3 = AMS, 4 = FRA, 5 = SIN).
${DEAL_ID}The Pontiac Deal ID associated with the winning bid, if applicable. If there is no deal, this will return 0.
${ECP}The publisher-side Estimated Clear Price for the auction.
${GENDER}The gender of the user (if available). Possible values: f (female), m (male), u (unknown).
${HEIGHT}The height of the creative served.
${INV_SOURCE_ID}Deprecated.
${IO_CODE}The insertion order code of the served impression.
${IO_ID}The insertion order ID of the served impression.
${IS_PREVIEW}Used to determine if the impression is from a creative preview (where the value is true, represented as “1”), or if it is generated from a live auction (the value will is false, represented as a “0”). This is useful when comparing reports with third-party ad servers since we only count impressions from live auctions.
${OZONE_ID}Deprecated.
${PMT_RULE_ID}The ID of the payment rule used to price the impression.
${POSTAL_CODE}The postal code of the user.
${PRICE_PAID}The price paid for this impression after price reduction. This is the second price.
${PT1}, ${PT2}, ${PT3}, ${PT4}, ${PT5}, ${PT6}, ${PT7}, ${PT8}, ${PT9}These macros can be populated with arbitrary custom data that you send in using the placement tag query string parameters pt1, pt2, pt3, pt4, pt5, pt6, pt7, pt8, and pt9.
${PUBLISHER_CODE}The code of the publisher selling the impression. Note that this code is available only if the publisher uses a code and has exposed itself for reporting.
${PUBLISHER_ID}The ID of the publisher selling the impression. Note that this ID is available only if the publisher has exposed itself for reporting.
${REFERER_URL_ENC}The encoded referring URL (if available). For mobile app impressions, returns the app store URL (if available).
${REFERER_URL}Deprecated. Use ${REFERER_URL_ENC} instead.
${REM_USER}Is this a remarketing user? Boolean value. 
${RESERVE_PRICE}The reserve price set by the publisher.
${SCHEME}Resolves to the appropriate application protocol (HTTP or HTTPS) depending on the inventory type.
${SEG_CODES}The codes for the segments belonging to the winning buyer, or that the buyer has access to, in this user’s cookie (in order of last seen time). If the user is in more than 15 of your accessible segments, this macro will only return the first 15 (ordered by most recently seen segment to oldest segment).
${SEG_IDS}The IDs of the segments belonging to the winning buyer, or that the buyer has access to, in this user’s cookie (in order of last seen time). If the user is in more than 15 of your accessible segments, this macro will only return the first 15 (ordered by most recently seen segment to oldest segment).
${SELLER_MEMBER_ID}The member ID of the member selling the impression.
${SITE_ID}The ID of the site (placement group) the impression is being served on.
${SSP_DATA}Required for Server Side Conversion Pixel calls.
${TAG_CODE1}The integration code set on the placement.
${TAG_CODE2}The additional integration code set on the placement.
${TAG_ID}The Pontiac placement ID that initiated the bid request.
${TIMESTAMP}The UNIX timestamp for the auction.
${USER_AGENT_ENC}The encoded user agent string from the request’s HTTP header.
${USER_AGENT}The user agent string from the request’s HTTP header. User agent often identifies such information as the application, operating system, and software vendor acting on behalf of the user (e.g., “Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.0.4) Gecko/2008102920 Firefox/3.0.4″).
${USER_CITY}The character string of the user’s city.
${USER_COUNTRY}The character string of the user’s country.
${USER_ID}The Pontiac 64-bit character string representing the user for the impression.
${USER_IP}The IP address of the user.
${USER_STATE}The character string of the user’s state or region. In the USA: 2 letter abbreviation. Outside of USA: the URL encoded user’s country followed by the user’s region ID (FIPS 10-4 or Pontiac-generated). 

For example, the region surrounding Riva, Latvia is LV%3A25 (encoding for LV:A25) 
${USE_COOKIES}Allowed values are 0 or 1. This is used for third-party creatives. If 0, you can use this macro to ask the hosting ad server not to set cookies on the user viewing the impression.
${WIDTH}The width of the creative served.

Macros for Video Impressions

MACRODESCRIPTION
${VIDEO_CONTEXT}The context of the video ad. Allowed values include: 0: In-stream unknown1: In-stream pre-roll2: In-stream mid-roll3: In-stream post-roll4: Out-stream
${VIDEO_PLAYBACK_METHOD}How the video was played. Allowed values include: 0: Unknown1: Auto-play, sound-on2: Auto-play, sound-off3: Click-to-play4: Mouse-over5: Auto-play, sound unknown
${VIDEO_PLAYER_WIDTH}The size of the video player, expressed as player width in pixels.
${VIDEO_PLAYER_HEIGHT}The height of the video player, expressed in pixels.

Macros for Mobile Impressions

MACROSDESCRIPTION
${CARRIER_ID}The Pontiac integer representing the mobile carrier ID.
${DEVICE_AAID}The Android advertising identifier, when the impression is from an Android device.
${DEVICE_APPLE_IDA}The Apple advertising identifier, when the impression is from an Apple device.
${DEVICE_IFA}The unique identifier representing the device.
${DEVICE_IFA_TYPE}The type of identifier represented by the ${DEVICE_IFA}. Possible values include:AAID (Android Advertising ID/Google)
IDFA (Identifier for Advertising/Apple)
AFAI (Amazon Fire ID)
RIDA (Roku ID)
OPENUDID
TIFA (Tizen Identifier for Advertising (Samsung Ad ID))
VIDA (Vizio Advertising ID)
LGUDID (LG Unique Device ID)
${DEVICE_IFA_TYPE} should be used in conjunction with ${DEVICE_IFA}, and this setup is recommended over individual device macros specific to each IFA type. These macros are applicable to both mobile and CTV device types.
${DEVICE_MAKE_ID}The Pontiac integer representing the ID of the make of the mobile device (e.g., 26).
${DEVICE_MD5}The MD5-encrypted unique identifier representing the mobile device.
${DEVICE_MODEL_ID}The Pontiac integer representing the ID of the mobile device model (e.g., 301).
${DEVICE_ODIN}The ODIN-encrypted unique identifier representing the mobile device.
${DEVICE_OPENUDID}The OPENUDID-encrypted unique identifier representing the mobile device.
${DEVICE_SHA1}The SHA1-encrypted unique identifier representing the mobile device.
${DEVICE_WIN_ID}The Windows Ad ID for the device on which this impression occurred (if applicable).
${EXT_APP_ID}The external identifier for the application requesting the impression. This is useful only for impressions from mobile apps.
${GEO_LAT}The latitude of the user’s location, when GPS data is available from a mobile device. Expressed in the format “snn.ddd,snn.ddd” (e.g., +12.345 or -45.123), where south is represented as negative. There can be a maximum of 5 decimal places of precision.
${GEO_LON}The longitude of the user’s location, when GPS data is available from a mobile device. Expressed in the format “snn.ddd,snn.ddd” (e.g., +12.345 or -45.123), where west is represented as negative. There can be a maximum of 5 decimal places of precision.
${SUPPLY_TYPE}This macro will be populated with a numeric value that denotes the supply type of the impression. Allowed values include: 0: web1: mobile web2: mobile app3: facebook sidebar4: toolbar

Privacy Macros

MACRODESCRIPTION
${GDPR_APPLIES}Designates whether GDPR regulations are applied. It specifically indicates whether the user is located in a GDPR impacted country, or if we have a GDPR-required signal passed with the request. 
Possible values include:0 for no
1 for yes
${GDPR}This is an alias for ${GDPR_APPLIES}, and behaves in the same manner.
${GDPR_CONSENT_STRING}This macro specifies the IAB GDPR consent string. If the GDPR applies, it will contain a list of user-approved vendors based on the IAB GDPR Transparency and Consent Framework. For more information, see IAB GDPR Transparency and Consent Framework.
${GDPR_CONSENT}This macro is an alias for ${GDPR_CONSENT_STRING}, and behaves in the same manner.
${XANDR_DOMAIN}Dynamically retrieves the appropriate Xandr domain based on the cookie consent settings included in the TCF string. If the user has cookies enabled from their browser settings but has:not given consent for their cookies to be included in the TCF string, the adnxs-simple.com domain will be used to prevent the browser from attaching cookies to subsequent ad calls.
given consent for their cookies to be included in the TCF string, the adnxs.com domain will be used to pass cookies in the header of each ad call.
${GPP_SID}Designates whether a section (i.e. regulatory framework) of the Global Privacy Platform should be applied. Specifically, it indicates whether the user is located in a country affected by legislation covered by the GPP.
${GPP_STRING_XXXXX*}This is the IAB Global Privacy Platform (GPP) string. If a section of the GPP applies, then this will contain framework-dependent information reflecting the consent elections of the user.

Function Macros

A function macro performs a function on another macro. Function macros can be used in combination with any other creative macro, including custom macros although if they are not recognized at render time, they will not be translated and the function will not be called. 

Pontiac currently supports the {$URL_ENC} function macro, which can be used for a variety of  purposes related to encoding. A key use case is when a URL needs to be passed from ad server to ad server via a creative macro, and due to the presence of unsupported characters in  standard URL formatting, must be encoded at various steps of the process. 

The macro takes the following form: 

${URL_ENC(${MACRO_NAME},#)} 

where ${MACRO_NAME} is the macro to be encoded and # is the integer 1, 2, or 3, representing the number of times to encode the contents. Note that more than three encodings are not supported.  

Each encoding corresponds to a step in the redirect chain, as well as how a given third-party click tracker works with the macro. Double encoding will usually be needed for final destination URLs when a second ad server is involved, and triple encoding for a third ad server. 

To determine whether you will need to use single, double, or triple encoding, you should check with your third-party click tracker and then test your URL_ENC macro to ensure it works. If your macro is not working, one consequence of this may be link breakage, which will result in users  not reaching the intended destination URL. 

 

Macro Implementation Recommendations & Examples

Click Tracking: For Pontiac to track clicks properly when utilizing third-party creative tags, the Click Macro will need to be properly inserted into the tag. Below are examples for the common ad servers. If your ad server is not included here, contact your third-party server for the location where the macro should be placed. The macro is: ${CLICK_URL}

Cache-busting: The cache-buster macro helps to ensure that impressions are more accurately counted as it guarantees that a fresh call is made to the ad server each time the tag is called. If this macro is not implemented it is more likely that you will see larger discrepancies between Pontiac reporting and the reporting in your ad server. Below are examples of the macro placement in tags for common ad servers. If your ad server is not included here, contact your third-party server for the location where the macro should be placed. The macro is: ${CACHEBUSTER}

All examples on this page were provided Xandr or by Pontiac clients. Pontiac cannot guarantee that these examples represent the current implementation or that changes have not been made by those third-party servers that may cause these macros not to function. The proper placement of all macros should be provided by your third-party server.

Examples by Ad Server for Ad Server Tag Banners:

AdForm:

<script language="javascript" src="http://track.adform.net/adfscript/?bn=123456;click=${CLICK_URL}"></script>
<noscript>
<a href="${CLICK_URL}http://track.adform.net/C/?bn=123456;C=0" target="_blank">
<img src="http://track.adform.net/adfserve/?bn=123456;srctype=4;ord=${CACHEBUSTER}" border="0" width="930" height="180" alt=""/>
</a>
</noscript>

AdGear:

<script type="text/javascript" language="JavaScript">
(function() {
ADGEAR_SOURCE_CLICKTRACKER = "${CLICK_URL}";
ADGEAR_SOURCE_CLICKTRACKER_EXPECTS_ENCODED = false;
ADGEAR_SOURCE_CLICKTRACKER_IS_ENCODED = false;
ADGEAR_SOURCE_CLICKTRACKER_IS_DOUBLE_ENCODED = false;
var randomnum = "{CACHEBUSTER}";
var agref = "";
var proto = "http:";
if (!agref.match(/^https?/i)) agref = "";
if (window.location.protocol == "https:") proto = "https:";
if (randomnum.substring(0,2) == "__") randomnum = String(Math.random());
document.writeln('<scr' + 'ipt type="text/ja' + 'vascr' + 'ipt" s' + 'rc="' +
proto + '//d.adgear.com' + '/impressions/ext/p=' +
'1234' + '.js?AG_R=' + randomnum +
(agref === "" ? "" : ("&AG_REF=" + encodeURIComponent(agref))) +
'"></scr' + 'ipt>');
})();
</script>

AdInterax:

<SCRIPT>adx_U_555555="";adx_D_55555="${CLICK_URL}";adx_I_555555="";</SCRIPT>

<SCRIPT
SRC="http://mi.adinterax.com/js/denvernp,atencio_300X_seren,C=XXXXX,P=XXXXX/ad2.js?q=55555555" LANGUAGE="JavaScript"></SCRIPT>

<NOSCRIPT><A HREF="${CLICK_URL}http://tr.adinterax.com/re/denvernp,atencio_300X_seren,C=XXXXXX ,P=XXXXX/0/0/tc,c:noscript/http://www.johnatencio.com/search?q=new+heart&x=16&y=9"><IMG SRC="http://tr.adinterax.com/re/XXXXXX,atencio_300X_seren,C=John_atencio,
P=Scott/0/0/in,ti/http://mi.adinterax.com/customer/XXXXXXX/0/300x250_FL_newart.jpg?adxq=1282775581" BORDER=0></A></NOSCRIPT>

Adition:

<!-- BEGIN ADITIONTAG -->
<script type="text/javascript" src="http://imagesrv.adition.com/js/adition.js"></script>
<script type="text/javascript" src="http://ad1.adfarm1.adition.com/js?wp_id=12345&kid=12345&clickurl=${CLICK_URL}"></script>
<noscript><a href="${CLICK_URL}http://ad1.adfarm1.adition.com/click?sid=12345&ts=${CACHEBUSTER}">
<img src="http://ad1.adfarm1.adition.com/banner?sid=12345&kid=12345&ts=${CACHEBUSTER}" border="0"></a></noscript>
<!-- END ADITIONTAG -->

AdShuffle:

<iframe allowTransparency="true" frameborder="0" scrolling="no"
marginheight="0" marginwidth="0" topmargin="0" leftmargin="0" width="728"
height="90"
src="http://this.content.served.by.adshuffle.com/p/kl/01/234/r/56/7/8/abdef/ghijkl/view.html?${CACHEBUSTER}&ASTPCT=${CLICK_URL}"></iframe>

Adtech:

<!--IFRAME Tag (General Redirect) // Page: 728x90 //  -->
<IFRAME WIDTH="728" HEIGHT="90" SCROLLING="No" FRAMEBORDER="0" MARGINHEIGHT="0" MARGINWIDTH="0" SRC="http://adserver.adtech.de/adiframe|3.0|1234|1234|0|1234|ADTECH;AdId=1234;BnId=-1;;target=_blank;misc=[timestamp];rdclick=${CLICK_URL}"><script language="javascript" src="http://adserver.adtech.de/addyn|3.0|1234|1234|0|1234|ADTECH;AdId=1234;BnId=-1;;loc=700;target=_blank;misc=[timestamp];rdclick=${CLICK_URL}"></script><noscript><a href="http://adserver.adtech.de/adlink|3.0|1234|1234|0|1234|ADTECH;AdId=9479763;BnId=-1;;loc=300;misc=[timestamp]" target="_blank;AdId=9479763;BnId=-1;"><img src="http://adserver.adtech.de/adserv|3.0|1234|1234|0|1234|ADTECH;loc=300;misc=[timestamp]" border="0" width="728" height="90"></a></noscript></IFRAME>
<!-- End of IFRAME Tag --> 

Atlas (New):

<script src='http://ad.atdmt.com/i/a.js;p=11002201227900;cache=${CACHEBUSTER}?click=${CLICK_URL_ENC}'></script><noscript><iframe frameborder='0' scrolling='no' marginheight='0' marginwidth='0' topmargin='0' leftmargin='0' allowtransparency='true' height='250' width='300' src='http://ad.atdmt.com/i/a.html;p=11002201227900;cache=${CACHEBUSTER}?click=${CLICK_URL_ENC}'></iframe></noscript>

Previous:

<iframe src="http://view.atdmt.com/CNT/iview/1234567890/direct;wi.160;hi.600/01${CACHEBUSTER}?click=${CLICK_URL}" frameborder="0" scrolling="no"
marginheight="0" marginwidth="0" topmargin="0" leftmargin="0" allowtransparency="true" width="160" height="600">
<script language="JavaScript" type="text/javascript"> document.write('<a href="${CLICK_URL}http://clk.atdmt.com/CNT/go/1234567890/direct;wi.160;hi.600/01/"
target="_blank"><img src="http://view.atdmt.com/CNT/view/195860978/direct;wi.160;hi.600/01/${CACHEBUSTER}"/></a>');
</script><noscript><a href="${CLICK_URL}http://clk.atdmt.com/CNT/go/195860978/direct;wi.160;hi.600/01/" target="_blank"><img border="0"
src="http://view.atdmt.com/CNT/view/1234567890/direct;wi.160;hi.600/01/${CACHEBUSTER}" /></a></noscript></iframe>

DoubleClick:

<script language="JavaScript" src="http://ad.doubleclick.net/adj/1234.567.890/;net=123456;sz=728x90;click=${CLICK_URL};ord=${CACHEBUSTER}?"
type="text/javascript"></script><noscript><a href="${CLICK_URL}http://ad.doubleclick.net/jump/1234.567.890/;net=123456;sz=728x90;ord=${CACHEBUSTER}?"
target="_blank"><img src="http://ad.doubleclick.net/ad/1234.567.890/;net=123456;sz=728x90;ord=${CACHEBUSTER}?" width="728" height="90" border="0"
alt=""></a></noscript>

DoubleClick (New Ins Tag):

Note: The DoubleClick ‘ins’ type tag will not need the Cachebuster macro.

<ins class='dcmads' style='display:inline-block;width:728px;height:90px'
   data-dcm-placement='N3241.163472.EXAMPLEAD/B8852666.112976410'
   data-dcm-rendering-mode='script'
   data-dcm-https-only
   data-dcm-click-tracker=${CLICK_URL}>
 <script src='//www.googletagservices.com/dcm/dcmads.js'></script>
</ins>

EyeReturn:

<script type="text/javascript" src="http://voken.eyereturn.com/?144857&click=${CLICK_URL}&params=${CACHEBUSTER}"></script>

Fetchback:

<script language='javascript' type='text/javascript' src='http://imp.fetchback.com/serve/fb/adtag.js?tid=47476&type=widesky&clicktrack=${CLICK_URL_ENC}'></script>

Flashtalking:

<script language="Javascript1.1" type="text/javascript">
var ftClick = "${CLICK_URL}";
var ftX = "";
var ftY = "";
var ftZ = "";
var ftContent = "";
var ft160x600_OOBclickTrack = "";
var ftRandom = Math.random()*1000000;
var ftBuildTag1 = "<scr";
var ftBuildTag2 = "</";
var ftTag = ftBuildTag1 + 'ipt language="javascript1.1" type="text/javascript" ';
ftTag += 'src="http://servedby.flashtalking.com/imp/55555;55555;201;js;MediaIQ;Sky160x600/?click='+ftClick+'&ftx='+ftX+'&fty='+ftY+'&ftadz='+ftZ+'&ftscw='+ftContent+'&cachebuster='+ftRandom+'" id="ftscript_160x600" name="ftscript_160x600"';
ftTag += '">' + ftBuildTag2 + 'script>'; document.write(ftTag);
</script>
<noscript>
<a href="${CLICK_URL}http://servedby.flashtalking.com/click/55555;55555;0;209;0/?url=232492" target="_blank">
<img border="0" src="http://servedby.flashtalking.com/imp/55555;55555;205;gif;MediaIQ;Sky160x600/?CB=${CACHEBUSTER}"></a>
</noscript>

Integral Ad Science:

Additional Macro: The macro IS_PREVIEW should be included at the end of the fw.adsafeprotected.com URLs to ensure that the creative previews properly in audit. If this macro is not included, the tag will be rejected in the audit process.

<script language="JavaScript" type="text/javascript" src="http://fw.adsafeprotected.com/rjss/at/53729/573929/CAT/jview/101010101/direct/01/${CACHEBUSTER}?click=${CLICK_URL}&adsafe_preview=${IS_PREVIEW}">
</script><noscript><a href="${CLICK_URL}http://clk.atdmt.com/CAT/go/101010101/direct/01/" target="_blank"><img border="0" src="http://fw.adsafeprotected.com/rfw/at/53729/573930/CAT/view/101010101/direct/01/${CACHEBUSTER}?adsafe_preview=${IS_PREVIEW}" /></a></noscript>
<IFRAME SRC="http://fw.adsafeprotected.com/rjsi/dc/54321/123456/adi/N1068.151790.ABCDE/B6797568.72;sz=160x600;click=${CLICK_URL};ord=${CACHEBUSTER}?adsafe_preview=${IS_PREVIEW}" WIDTH=160 HEIGHT=600 MARGINWIDTH=0 MARGINHEIGHT=0 HSPACE=0 VSPACE=0 FRAMEBORDER=0 SCROLLING=no BORDERCOLOR='#000000'>
<SCRIPT language='JavaScript1.1' SRC="http://fw.adsafeprotected.com/rjss/dc/54321/455394/adj/N1068.151790.ABCDE/B6797568.72;abr=!ie sz=160x600;click=${CLICK_URL};ord=${CACHEBUSTER}?adsafe_preview=${IS_PREVIEW}">
</SCRIPT>
<NOSCRIPT>
<A HREF="${CLICK_URL}http://ad.doubleclick.net/jump/N1068.151790.ABCDE/B6797568.72;abr=!ie4;abr=!ie5;sz=160x600;ord=${CACHEBUSTER}?">
<IMG SRC="http://fw.adsafeprotected.com/rfw/dc/54321/455392/ad/N1068.151790.ABCDE/B6797568.72;abr=!ie4;abr=!ie5;sz=160x600;ord=${CACHEBUSTER}?adsafe_preview=${IS_PREVIEW}" BORDER=0 WIDTH=160 HEIGHT=600 ALT="Advertisement"></A>
</NOSCRIPT>
</IFRAME>

Sizmek:

<script src="http://bs.serving-sys.com/BurstingPipe/adServer.bs?cn=rsb&c=12&pli=1234567&PluID=0&w=728&h=90&ord=${CACHEBUSTER}&ifrm=-1&ucm=true&ncu=$$${CLICK_URL_ENC}$$">
</script><noscript><a href="${CLICK_URL}http%3A//bs.serving-sys.com/BurstingPipe/BannerRedirect.asp%3FFlightID%3D1234567%26Page%3D%26PluID%3D0%26Pos%3D1234"
target="_blank"><img src="http://bs.serving-sys.com/BurstingPipe/BannerSource.asp?FlightID=1234567&Page=&PluID=0&Pos=1234" border=0 width=728
height=90></a></noscript>

MediaPlex:

<script type="text/javascript" src="http://altfarm.mediaplex.com/ad/js/12345-678901-23456-7?mpt=${CACHEBUSTER}&mpvc=${CLICK_URL_ENC}"></script>
<noscript><a href="${CLICK_URL}http://altfarm.mediaplex.com/ad/nc/12345-678901-23456-7?mpt=${CACHEBUSTER}">
<img src="http://altfarm.mediaplex.com/ad/nb/12345-678901-23456-7?mpt=${CACHEBUSTER}" alt="Click Here" border="0"></a></noscript>
<IFRAME SRC="http://b3.mookie1.com/2/abcdefg/hijkl/123456/Banner/300/1${CACHEBUSTER}@x90" WIDTH=0 HEIGHT=0 MARGINWIDTH=0
MARGINHEIGHT=0 HSPACE=0 VSPACE=0 FRAMEBORDER=0 SCROLLING=no BORDERCOLOR="#000000"></IFRAME>

Open Ad Stream (24/7):

<script LANGUAGE="JavaScript1.1"
SRC="http://oasn04.247realmedia.com/RealMedia/ads/adstream_jx.ads/XXXXX/XXXXX/XXXXX/XXXXX/300/1${CACHEBUSTER}@x90?${CLICK_URL}">
</script>

PointRoll:

<script type="text/javascript">
function pr_swfver(){
var osf,osfd,i,axo=1,v=0,nv=navigator;
if(nv.plugins&&nv.mimeTypes.length){osf=nv.plugins["Shockwave Flash"];if(osf&&osf.description){osfd=osf.description;v=parseInt(osfd.substring(osfd.indexOf(".")-2))}}
else{try{for(i=5;axo!=null;i++){axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+i);v=i}}catch(e){}}
return v;
}
var pr_d=new Date();pr_d=pr_d.getDay()+"|"+pr_d.getHours()+":"+pr_d.getMinutes()+"|"+-pr_d.getTimezoneOffset()/60;
var pr_postal="";
var pr_data="";var pr_ies="";

var pr_redir="${CLICK_URL}$CTURL$";

var pr_nua=navigator.userAgent.toLowerCase();
var prHost=(("https:"==document.location.protocol)?"https://":"http://");var pr_sec=((prHost=='https://')?'&secure=1':'');
var pr_pos="",pr_inif=(window!=top);
if(pr_inif){try{pr_pos=(typeof(parent.document)!="unknown")?(((typeof(inDapIF)!="undefined")&&(inDapIF))||(parent.document.domain==document.domain))?"&pos=s":"&pos=x":"&pos=x";}
catch(e){pr_pos="&pos=x";}if(pr_pos=="&pos=x"){var pr_u=new RegExp("[A-Za-z]+:[/][/][A-Za-z0-9.-]+");var pr_t=this.window.document.referrer;
var pr_m=pr_t.match(pr_u);if(pr_m!=null){pr_pos+="&dom="+pr_m[0];}}else{if(((typeof(inDapMgrIf)!="undefined")&&(inDapMgrIf))||((typeof(isAJAX)!="undefined")&&(isAJAX))){pr_pos+="&ajx=1"}}}
if(pr_postal!=""){var przipmatch=/^\d{5}$/;if(przipmatch.test(pr_postal)){pr_pos+="&postal="+pr_postal;}}
if((pr_data!="")&&(pr_data.indexOf("&")<0)){pr_pos+="&data="+pr_data;}
if((pr_ies!="")&&(pr_ies.indexOf("&")<0)){pr_pos+="&ies="+pr_ies;}
var pr_s="ads.pointroll.com/PortalServe/?pid=xxxx&flash="+pr_swfver()+"&time="+pr_d+"&redir="+pr_redir+pr_pos+pr_sec+"&r="+Math.random();
document.write("<scr"+"ipt type='text/javascript' src='"+prHost+pr_s+"'></scr"+"ipt>");
</script>

Project Sunblock:

When previewing Project Sunblock tags, please ensure you deselect Serve in iFrame as this will stop the tags previewing in our UI and you will be unable to test click-tracking.

<script type='text/javascript'>
    var _sblq = _sblq || [];
    (function() {
        var s = document.getElementsByTagName('script'), s0 = s[0], adElement = s[s.length-1];
        var sl = Math.random().toString(36).substring(2);
        _sblq.push([sl, 'setClickUrl', '${CLICK_URL}']);
        _sblq.push([sl, 'displayAd', adElement,300, 1234]);
        var sb = document.createElement('script'); sb.type = 'text/javascript'; sb.async = true; sb.defer = true;
        sb.src = ('http:'==document.location.protocol ? "http:" : "https:")+'//js.sblk.io/sb.js';
        s0.parentNode.insertBefore(sb, s0);
    })();
</script>
<noscript><img src='//api.sblk.io/request.gif?campaign_id=000&ad_id=0000' width='1' height='1'></noscript>

SmartAdServer:

<SCRIPT LANGUAGE="JavaScript1.1" SRC="http://ww856.smartadserver.com/call/adj/306890/2591652/CLIENT.campaign/600x300/${CACHEBUSTER}/no?${CLICK_URL}"></SCRIPT>

<NOSCRIPT><a href="${CLICK_URL}http://ww856.smartadserver.com/call/jumpi/306343/2591652/CLIENT.campaign/600x300/${CACHEBUSTER}/no?" target="_blank">
<img src="http://ww856.smartadserver.com/call/adi/306890/2591343/CLIENT.campaign/600x300/${CACHEBUSTER}/no?" border="0"></a></NOSCRIPT>

Trade Doubler:

<script type="text/javascript">
var uri = 'http://impde.tradedoubler.com/imp?type(iframe)g(18906306)a(1838453)preurl(${CLICK_URL})' + new String (Math.random()).substring (2, 11);
document.write('<iframe src="'+uri +'" width="160" height="600" frameborder="0" border="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>');
</script>

Traffiq:

<iframe src="http://ads.traffiq.com/ad.imp?pid=1234&oid=5678&rand=${CACHEBUSTER}/?pclk=${CLICK_URL}" width="728" height="90"
frameborder="0" marginheight="0" marginwidth="0" scrolling="no" topmargin="0" leftmargin="0"> </iframe>

Weborama:

<a href="${CLICK_URL}http://gae.solution.weborama.fr/fcgi-bin/dispatch.fcgi?a.A=cl&a.si=54&a.te=56&a.ra=__RANDOM__&a.im=1&g.lu=" target="_blank">
<img src="http://gae.solution.weborama.fr/fcgi-bin/dispatch.fcgi?a.A=im&a.si=54&a.te=56&a.he=600&a.wi=160&a.ra=__RANDOM__&a.hr=R" width="160" height="600"></a>

Yield Manager:

<IFRAME FRAMEBORDER=0 MARGINWIDTH=0 MARGINHEIGHT=0 SCROLLING=NO WIDTH=300 HEIGHT=250 SRC="http://ad.yieldmanager.com/st?ad_type=iframe&ad_size=300x250&section=XXXXXXX&pub_redirect_unencoded=1&pub_redirect=${CLICK_URL}"></IFRAME>

Zedo:

<script language="JavaScript" src="http://d7.zedo.com/jsc/d3/fl.js?n=809&c=1839/1740&s=704&d=14&w=728&h=90&l=${CLICK_URL}&z=${CACHEBUSTER}"></script> <noscript><a href="http://yads.zedo.com/ads2/r?n=809;c=1839/1740;s=704;x=3584;u=j;z=${CACHEBUSTER}" target="_blank"><img

 border="0" width="728" height="90" src="http://yads.zedo.com/ads2/x?n=809;c=1839/1740;s=704;x=3584;u=j;z=${CACHEBUSTER}" alt="Click here"></a> </noscript>

ViralGains Odyssey:

<iframe src = 'https://odc-wsb.viralgains.com?lineItemId=1234abcd&vendorId=1234abcd&creativeId=1234abcd&cachebuster=${VG_CACHEBUSTER}&clickURLEnc=${CLICK_URL_ENC}' width='xxx' height='yyy' frameborder='0' marginheight='0' marginwidth='0' target='_blank' scrolling='no'></iframe>

Encoding Examples

To encode click URL once: 
${URL_ENC(${CLICK_URL},1)} 
If http://Pontiac.media is passed as the click URL,  
using ${URL_ENC(${CLICK_URL},1)} to single encode the URL would result in http%3A%2F%2FPontiac.media populating the creative. 

To encode media URL once: 
${URL_ENC(${MEDIA_URL},1)} 

To encode media URL twice: 
${URL_ENC(${MEDIA_URL},2)} 

To encode a custom macro called ADFORMAT once: 
${URL_ENC(#{ADFORMAT},1)}

Macro ID Mapping

When using the Pontiac Macros, the IDs returned for Advertisers, Line Items, Creatives and Pixels will be Exchange IDs. To match these IDs to the Pontiac IDs, you must download the ‘Get Macro ID Mapping’ for your seat. To find this doc, open an Advertiser and select ‘New Creative’. Switch the dropdown to ‘Ad Server Tag Banner’ and you will see the following:

Click ‘Get Macro ID Mapping’ to download an excel with the IDs for your seat. This will download an excel with the IDs that looks like the following:

© 2025 Pontiac Wiki Sec · All Rights Reserved · Developed by RDK

  • Contact Us
  • Privacy Policy
  • Terms & Conditions
  • Pontiac.media