Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Download the Javascript File Here: https://drive.google.com/open?id=1lyLtoY31jO8zKMqaUHBcT988xHlk544P
- //Upload the metrics_ss.min.js file together with your creative files in Studio
- //PASTE THIS BELOW THE CODE: Enabler.setDevDynamicContent(devDynamicContent);
- //Replace the dynamicContent.AdLib__Tesco_BargainHunters_AdLib__Tesco_BargainHunters[0].Reporting_Label with the reporting label from your dynamic invocation code.
- var campaignID = Enabler.getParameter("buy");
- var advertiserID = Enabler.getParameter("adv");
- loadAdMetrics();
- function loadAdMetrics(){
- window.ADM_INIT_PARAMS = {
- ca: encodeURIComponent(campaignID),
- aid: encodeURIComponent(advertiserID),
- tag: encodeURIComponent(dynamicContent.AdLib__Tesco_BargainHunters_AdLib__Tesco_BargainHunters[0].Reporting_Label),
- ii: +new Date() + '' + (Math.floor(Math.random() * 9e5) + 1e5),
- ev: 'lavisheduc',
- cl: 326704,
- cn: 0
- };
- console.log("Campaign ID: "+campaignID)
- console.log("Advertiser ID: "+advertiserID)
- console.log("Reporting Label ID: "+dynamicContent.AdLib__Tesco_BargainHunters_AdLib__Tesco_BargainHunters[0].Reporting_Label)
- var script = document.createElement('script');
- script.type = 'text/javascript';
- script.src = 'metrics_ss.min.js';
- document.body.appendChild(script);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement