{"__v":13,"_id":"56157d7af2d81d0d006c895f","category":{"__v":6,"_id":"55f9dbefc7ef770d00d9bf6d","pages":["55f9eec4c7ef770d00d9bf83","55f9fb8daba81f0d00a11566","5601ca6870694e0d00e3c66f","5601cb9b96e0f70d0044b0fd","56157d7af2d81d0d006c895f","5671d738c17bf90d00b95822"],"project":"5429beef1163360800ed31fa","version":"5429beef1163360800ed31fd","sync":{"url":"","isSync":false},"reference":true,"createdAt":"2015-09-16T21:15:27.664Z","from_sync":false,"order":4,"slug":"publisher-ui-setup","title":"Trafficking and Inventory"},"parentDoc":null,"project":"5429beef1163360800ed31fa","user":"56157c37c41bfc0d00292b38","version":{"__v":20,"_id":"5429beef1163360800ed31fd","project":"5429beef1163360800ed31fa","createdAt":"2014-09-29T20:19:59.904Z","releaseDate":"2014-09-29T20:19:59.904Z","categories":["5429beef1163360800ed31fe","55e74e1f5d36b32b002563fa","55e7500a73169617001f2e86","55e76b8196131b2f00bf4b72","55e89569cdbb8a350096df9c","55f8935eb089b71700a8364e","55f8a67d3bb4bb0d0022d093","55f9dbefc7ef770d00d9bf6d","5601c21a22ecf60d002b27b3","5601c21ff12aee0d001bb06e","5601c2256c7b610d00280db5","5601c22c22ecf60d002b27b4","5603738d0c78b00d0039af47","5626f70bfcbbc621004ebf52","566f7a1ae144ab0d00e9732f","566f85ca7820960d00c3b93d","56708ce43a32d20d00c45cbf","56708d436995210d003aad8e","5736471abe10a9200030732c","57a82c7aff9bd30e00a6f1c1"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"1.0.0","version":"1.0"},"updates":["56be674ebcaffd1900b3407a"],"next":{"pages":[],"description":""},"createdAt":"2015-10-07T20:15:54.246Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":true,"order":4,"body":"We provide a list of macros that can be used in third-party tracking tags.\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"Supported Macros\"\n}\n[/block]\n**[PAGE-URL] **- Page URL of the ad request\n**[PAGE-DOMAIN] **- Top-level-domain of the page of the ad request\n**[REFERRER-URL] **- Referer URL if any\n**[PLACEMENT-ID] **- AdsNative placement ID of the ad request\n**[RANDOM]** : Random integer value used for cache-busting\n**[TIMESTAMP]** : UTC epoch timestamp (in milliseconds)\n**[UNIQUE]** : 16-digit unique integer identifier\n**[AUCTION-PRICE-RATIO]** : computed as clearing-price / dsp-bid (Available only for DSPs)\n**[SESSION-ID]** : AdsNative specific Session ID for a particular ad response. Used especially in case of custom actions and conversion tracking.\n**[IDFA]** : Unique ad identifier on iOS devices\n**[GAID]** : Unique ad identifier on Android devices\n**[IP]** : IP Address\n**[UA]** : User agent\n\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"Example\"\n}\n[/block]\n\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"<img src=\\\"https://www.tracker.com?time=[TIMESTAMP]&cache=[RANDOM]\\\">\",\n      \"language\": \"html\"\n    }\n  ]\n}\n[/block]\nNote:  Macros are always in **square brackets []** and are always **uppercase**.  So [Timestamp] or TIMESTAMP will not work.","excerpt":"","slug":"third-party-tag-macros","type":"basic","title":"Third-party Tag Macros"}

Third-party Tag Macros


We provide a list of macros that can be used in third-party tracking tags. [block:api-header] { "type": "basic", "title": "Supported Macros" } [/block] **[PAGE-URL] **- Page URL of the ad request **[PAGE-DOMAIN] **- Top-level-domain of the page of the ad request **[REFERRER-URL] **- Referer URL if any **[PLACEMENT-ID] **- AdsNative placement ID of the ad request **[RANDOM]** : Random integer value used for cache-busting **[TIMESTAMP]** : UTC epoch timestamp (in milliseconds) **[UNIQUE]** : 16-digit unique integer identifier **[AUCTION-PRICE-RATIO]** : computed as clearing-price / dsp-bid (Available only for DSPs) **[SESSION-ID]** : AdsNative specific Session ID for a particular ad response. Used especially in case of custom actions and conversion tracking. **[IDFA]** : Unique ad identifier on iOS devices **[GAID]** : Unique ad identifier on Android devices **[IP]** : IP Address **[UA]** : User agent [block:api-header] { "type": "basic", "title": "Example" } [/block] [block:code] { "codes": [ { "code": "<img src=\"https://www.tracker.com?time=[TIMESTAMP]&cache=[RANDOM]\">", "language": "html" } ] } [/block] Note: Macros are always in **square brackets []** and are always **uppercase**. So [Timestamp] or TIMESTAMP will not work.