Mobile-Specific Macros

MacroReplacement DescriptionType
${CS_PLATFORM_ID}

(ComScore) The platform ID, which corresponds to the device’s operating system:

  • ios = Apple iOS
  • android = Google Android
  • windows = Windows Mobile
  • blackberry = Blackberry
  • other when the platform is none of the above
varchar(50)
${CS_DEVICE_MODEL}(ComScore) The device model name, URL-encoded.string
${CS_IMPLEMENTATION_TYPE}

(ComScore) The environment in which the ad was served:

  • a = mobile application
  • b = mobile website
string (a or b)
${NS_PLATFORM_ID}

(Nielsen) The platform ID, which corresponds to the device’s operating system:

  • ios= Apple iOS
  • android = Google Android
  • windows = Windows Mobile
  • blackberry = Blackberry
  • other when the platform is none of the above
string
${NS_DEVICE_GROUPING}

(Nielsen) The device type on which the ad was viewer:

  • TAB = tablet
  • PHN = mobile
  • computer = computer
string
${UOO}

(Nielsen) Whether or not the user has opted out of ad tracking:

  • 1 (DNT flag = 1) = the user has opted out of ad tracking
  • 0 (DNT flag = 0) = the user has opted in to ad tracking
integer (0 or 1)
${TM_BUNDLE}The iOS or Android app store bundle ID. Examples: com.zynga.wwf2.free or id804379658string
gdpr=${GDPR_ENFORCED}&gdpr_consent=${GDPR_CONSENT}

gdpr=${GDPR_ENFORCED} indicates if the bidder determines that the bid request comes from the European Union origin and requires GDPR enforcement:

  • 1 = GDPR should be enforced
  • 0 = GDPR should not be enforced

gdpr_consent=${GDPR_CONSENT} is the consent value passed from the supply partner in the inbound bid request:

  • In most cases, this is a base64url-encoded consent string, or daisybit (example: BN5lERiOMYEdiAKAWXEND1HoSBE6CAFAApAMgBkIDIgM0AgOJxAnQA)
  • 0 = no consent
  • 1 = consent
daisybit or integer