{"_id":"5693c1d03e9d080d00f0641f","__v":16,"category":{"_id":"56858767d96a760d00545da6","project":"564621e00c30fb2100ba3814","version":"564621e10c30fb2100ba3817","__v":5,"pages":["568587afa3c7070d003dd7a8","5685979c3703ed1700e420bf","56859893d96a760d00545db9","5693c1d03e9d080d00f0641f","5693cb3a237d3b0d00740650"],"sync":{"url":"","isSync":false},"reference":false,"createdAt":"2015-12-31T19:52:07.609Z","from_sync":false,"order":5,"slug":"mobfox-demand-side-platform","title":"Advertiser Resources"},"parentDoc":null,"user":"56499dade2efd717002afc83","version":{"_id":"564621e10c30fb2100ba3817","__v":14,"project":"564621e00c30fb2100ba3814","createdAt":"2015-11-13T17:46:09.275Z","releaseDate":"2015-11-13T17:46:09.275Z","categories":["564621e10c30fb2100ba3818","564624cf0c30fb2100ba3822","564628d69f3f550d00fa3db6","564dafeeda00e82b00ed601d","564daff8fc36dc3700882b95","564db0ccda00e82b00ed601f","564dcf87d3320b0d0028ca10","5661a6e436398e0d00f79566","568585153703ed1700e420b0","56858767d96a760d00545da6","56858d693703ed1700e420b2","56858d8d22c41b0d00e4666c","56859e9c009a8d0d00797130","5685a6453703ed1700e420d3"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"1.0.0","version":"1.0"},"project":"564621e00c30fb2100ba3814","updates":["56fd46c04388650e00eb4781"],"next":{"pages":[],"description":""},"createdAt":"2016-01-11T14:53:04.977Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":true,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":1,"body":"Impression macros are replaced per ad impression when using a custom impression pixel URL. These tokens are inserted into the impression pixel and can be tracked. They are populated when the ad is served.\n\nNote: if you don't set a custom impression pixel URL, these macros will not be used.\n[block:api-header]\n{\n  \"type\": \"basic\"\n}\n[/block]\n\n[block:parameters]\n{\n  \"data\": {\n    \"0-0\": \"${MFOXCLICKURL}\",\n    \"1-0\": \"${MFOXCLICKID}\",\n    \"2-0\": \"${MFOXPUBID}\",\n    \"3-0\": \"${RANDOMNR}\",\n    \"0-2\": \"Inserts a Click tracker to enable MobFox to track a click provided that there is a Placeholder for a Click tracker in the Ad code\",\n    \"1-2\": \"Inserts a unique ClickID for use with the conversion tracking API\",\n    \"2-2\": \"Inserts a blinded Publisher ID to enable the advertiser to track clicks by publisher provided that there is a place holder to place this in the Ad Code\",\n    \"3-2\": \"Inserts a random number.\",\n    \"3-1\": \"A random Integer\",\n    \"0-1\": \"String\",\n    \"1-1\": \"String\",\n    \"2-1\": \"String\",\n    \"h-1\": \"Type\",\n    \"h-2\": \"Description\",\n    \"h-0\": \"Macro\"\n  },\n  \"cols\": 3,\n  \"rows\": 4\n}\n[/block]","excerpt":"Placeholders which will be replaced in your custom impressions urls","slug":"impression-tokens","type":"basic","title":"Impression Macros"}

Impression Macros

Placeholders which will be replaced in your custom impressions urls

Impression macros are replaced per ad impression when using a custom impression pixel URL. These tokens are inserted into the impression pixel and can be tracked. They are populated when the ad is served. Note: if you don't set a custom impression pixel URL, these macros will not be used. [block:api-header] { "type": "basic" } [/block] [block:parameters] { "data": { "0-0": "${MFOXCLICKURL}", "1-0": "${MFOXCLICKID}", "2-0": "${MFOXPUBID}", "3-0": "${RANDOMNR}", "0-2": "Inserts a Click tracker to enable MobFox to track a click provided that there is a Placeholder for a Click tracker in the Ad code", "1-2": "Inserts a unique ClickID for use with the conversion tracking API", "2-2": "Inserts a blinded Publisher ID to enable the advertiser to track clicks by publisher provided that there is a place holder to place this in the Ad Code", "3-2": "Inserts a random number.", "3-1": "A random Integer", "0-1": "String", "1-1": "String", "2-1": "String", "h-1": "Type", "h-2": "Description", "h-0": "Macro" }, "cols": 3, "rows": 4 } [/block]