Advanced RTB option: Pocketmath Mobile DSP Ad Macros

Posted by Hannah Jeon on Jun 20, 2017 12:11:41 PM

Topics: Tips & How to

When running campaigns on Pocketmath, Campaign Managers often use ad macros to collect insightful data and information on target audiences.

 

Also called tokens, ad macros are instrumental in managing and optimizing a campaign’s KPI when used together with third party tracking services such as Adjust, Adways, Appsflyer, Apsalar, Kochava, and Tune. Pocketmath bidders can track, identify, and replace ads with actual audience information in real-time.

 

Ad macros can also be included in any code processed by the ad server during the delivery process. Examples include third-party or custom creative code, rich media code, and click-through URLs.

 

Listed below are the types of ad macros used by our customers for their mobile advertising campaign and supported by Pocketmath’s mobile DSP. 

(Note: The following tables cover Tracking Macros, Device-specific Macros, Device Identifier Macros, Source Macros, and Targeting Macros)

 

Tracking Macros

 Variables  Field Info  Example
 ${imp_id}  Pocketmath-specific  impression ID. Values  returned are in the  form of unique  alphanumeric  characters.

 LyhpP952tbbJqAXZi8_l6Knb_eEAs-rKobqG0Ptb5rAY

 ${click_url}  Pocketmath-supplied  URL used to track click-  throughs and to record  clicks in the Pocketmath  dashboard.

 https:\/\/sampleclickurl.pocketmath.com\/ctc?sid=

 Flow+Free+-+Pla y&page_url=&isp=MobileOne&as=

 320x50&di=E58C7CB6-6EB5-470690B4718A311CB248&

 dit=gaid&bundle_id=com.bigduckgames.flow&xc=

 mopub&dm=SMN910G&ua=Mozilla%2F5.0+%28

 Linux%3B+Android+5.0.1%3B+SMN910G+Build%

 2FLRX22C%3B+wv%29+AppleWebKit%2F537.36+%

 28KHTML%2C+like+Gecko%29+Version%2F4.0+

 Chrome%2F43.0.2357.121+Mobile+Safari%2F537.36

 &referrer_url=&bundle=com.bigduckgames.flow&gps

 =1.2931%2C103.8558&do=android&redirect=

 ${timestamp}  UNIX timestamp of RTB  auction.

 1460140600000

 ${datetime}  Date and time of RTB  auction formatted as  YYYY-MM-DD  HH:MM:SS.

 7/28/2015 6:20:24

 

A click macro is required for all Rich Media creative tags such as JavaScript, MRAID, but not necessary for Video, Static Banner and Native Ads. With a click macro, Pocketmath can track clicks on the Campaign/Order dashboard.

 

Device-specific Macros

 Variables  Field Info  Example
  ${device_isp}  Name of ISP. Carrier  information can be  derived from this  value.

 MobileOne

 ${device_model}  Returns the value of  the device model.

 SM-N910G

 ${device_os}
 Returns the value of  the device operating  system.

 android

 ${os_version}
 Device operating  system version  number.

 Mozilla\/5.0

 

Device Identifier Macros

 Variables  Field Info  Example
 ${device_identifier _type}  Returns the type of  device identifier that  matched the bid

 gaid

 ${device_identifier}  Returns the value of  device identifier and  can be SHA1-  hashed,  depending  on type  format  provided by  the ad  exchange.

 E58C7CB6-6EB5-4706-90B4-718A311CB248

 ${user_agent}
 User-agent string for  the user device.

 Mozilla\/5.0

 ${gaid}
 Device operating  system version  number.

 Mozilla\/5.0

 ${ifa}  Apple's Identifier for  advertising in raw  format.

 D00C4765-D3FC-44BA-A387-C7D78E325005

 ${sha1_aid}  SHA1-hashed format  of Android ID.

 e48597db1cadb3df98008c2a50780d70a4020b94

 ${sha1_dpid}  SHA1-hashed format  of both Google  Advertising ID or  IDFA

 30b1b31890c67bda6212ca7cd612fdce604481e0

 ${sha1_did}  SHA1-hashed format  (such as IMEI, MEID,  or  ESN).

 16d310eea14ae7e6e8e6065512db803ec63bc6

 ${sha1_udid}  SHA1-hashed  Unique  Device ID. (A  SHA-1  hash value is  typically  rendered as  a  hexadecimal  number.)

 6065512ab30db803ec63b0eea14ae7e6e2db8

 

The best way to fetch device IDs is to use the ${device_identifier_type} & ${device_identifier} macro in the same tag. It helps you identify the type of device identifier returned and its corresponding value. 

 

Source Macros

 Variables  Field Info  Example
 ${page_url}  The URL of the page  where  the ad  impression has  occurred. Doesn’t work  for  apps.

 http%3a%2f%2fwww%2efacebook%2ecom

 ${referrer_url}  Publisher's referrer  URL to  determine the  source of  the click

 http%3a%2f%2fwww%2efacebook%2ecom

 ${source_id}  
 Plain text name of the  site  or app on which  the ad is  being served.

 tUKSrJdxAuwZNJzbETcLLtUppZBbnikxayd

 zvCfCGbDyqLzYgpRBiBPhtdwu

 ${bundle_id}  Application bundle or  package name from  iTunes/AppStore. Only  available for Apps.  

 com.outfit7.mytalkingtom

 

Targeting Macros

 Variables  Field Info  Example
 ${ad_size}  Dimension of ad  displayed.

 320x50

 ${campaign_id}  Pocketmath Campaign  Identification Number.

 -

 ${creative_type}  
 Creative type.

 "BANNER", "JAVASCRIPT"

 ${ip_add}  Publisher's referrer  URL to determine the  source of the click.

 192.0.27.1

 ${exchange}  Name of exchange  where impression is  won.

 mopub

 ${order_id}  Order identification  number where  impression is won.

 123054

 ${lat}   Latitude from -90.0 to  +90.0, where negative  is south.

 1.35

 ${lon}    Longitude from -180.0  to +180.0, where  negative is west.

 103.8 

  ${gps}  GPS coordinates, up to  6 decimal precision

 "1.305844,103.864444"

 ${postal_code}  Zip or postal code.

 132214

 ${dnt}    Standard "Do Not  Track" macro.
 Note: If the user has  opted in to no tracking,  Pocketmath will not  disclose any personal  Identifiable  information.

 0 = tracking is allowed
 1 = do not track

 

Ad macros are provided on a “best effort” basis. Some bid opportunities will not contain data for specific ad macros.

For example, if the ad exchange does not send the Android ID in a bid request, invoking the ${sha1_aid} results in an empty parameter being passed.

 

 

Pocketmath-PRO-Mobile-DSP

 

 

Are you not a Pocketmath user? If you're interested, talk to us!

GET STARTED

 


More stories to read.. 

Harness the power of 1st-party data integration: the key to higher advertising returns

Rules made easy

Easier results with automatically optimised CPC Targeting

 

Subscribe to Email Updates

Popular Posts

Recent Posts