From September, Flash will no longer be supported by Chrome. Prepare for the shift towards HTML5 by visiting our Flash to HTML5 help page

Check it out!

Supported Macros

Macro is a variable that expands automatically into a set of instructions to perform a particular task and only works on that level where it is defined, e.g. Adform macro __ADFRND__ only works in the Adform system. See the list of supported macros below:

NOTE! All MACRO's replaced values are encoded.

  • __ADFTAGID__ – Adform tag ID (bn)
  • __ADFADV__ – Advertiser Name
  • __ADFADVID__ – Advertiser ID
  • __ADFUID__ – Adform Cookie ID (user ID)
  • __ADFDIM__ – Banner dimensions – e.g. 300x250
  • __ADFTYP__ – Banner Type (always returns 'Dhtml' for Third Party and DHTML ads)
  • __ADFBANGROUP1..5__ – Banner group Name
  • __ADFBANGROUP1..5ID__ – Banner group ID
  • __ADFBNRDOM__ – Domain where banner was shown
  • __ADFCAM__ – Campaign Name
  • __ADFCAMID__ – Campaign ID
  • __ADFLABEL1..20__ – Campaign label number
  • __ADFCRE__ – Creative (banner) name
  • __ADFCREID__ – Creative (banner) ID
  • __ADFCID__ – Creative (banner) ID
  • __ADFAPPDATA__ - Encrypted data for AppDownload Tracking
  • __ADFPLA__ – Banner placement name
  • __ADFPLAID__ – Banner placement ID
  • __ADFPLASEC__ - Line Item section Name
  • __ADFMED__ – Media Name
  • __ADFMEDID__ - Media ID
  • __ADFNETWID__ – Media Network ID
  • __ADFNETW__ – Media Network Name
  • __ADFPLABL1..20__ – Placement label
  • __ADFPLALBL1..20__ – Placement label
  • __ADFRND__ – Random number
  • __ADFINVID__ – RTB:  Inventory Source ID
  • __ADFINV__ - RTB: Inventory Source Name
  • __ADFRTBDOM__ – RTB: RTB domain
  • __ADFDPID__ – RTB: Deal or Package ID
  • __ADFTRID__ - Tracking Setup ID
  • __ADFIMPID__ – Impression ID
  • __ADFWIDTH__ - Creative (banner) width
  • __ADFHEIGHT__ - Creative (banner) height
  • __COMSCORE_BASE_URL__ - Comscore specific replace ("https://sb" or "http://b")
  • __ADFDEVID__ - Device Advertising ID
  • __ADFPUBID__ - External Publisher ID
  • __ADFAPPDATA__ - Application Data
  • __ADFLP__ - Encoded Landing page (works in clicks only)
  • __ADFADGAPID__ - Line item AdGapID
  • __ADX:__ - ADX-specific macro replacement
  • __ADFREFERER__ - Referer URL
  • __ADFLAT__ - Latitude of the viewers location
  • __ADFLNG__ - Longitude of the viewers location
  • __ADFTIMESTAMP__ - Unix timestamp in miliseconds
  • __ADFOPTSTAT__ - Opt-out status
  • __ADFAPPID__ - Mobile app bundle ID
  • __ADFAPPNAME__ - Mobile application name
  • __ADFORD__ - Order name
  • __ADFORDID__ - Order ID
  • __ADFADMSGID__ - AdMessage ID