How do I best add new DoubleClick for Publishers ad tag

Posted in: Newspaper
Post count: 32

It needs to go in the header and I am also using the standalone mobile theme. Should I edit the theme files directly or is there a better way.

<script async=’async’ src=’https://www.googletagservices.com/tag/js/gpt.js’></script&gt;
<script>
var googletag = googletag || {};
googletag.cmd = googletag.cmd || [];
</script>

<script>
googletag.cmd.push(function() {
googletag.defineSlot(‘/360007671/xx_dmpu’, [[300, 600], [300, 250]], ‘div-gpt-ad-1524001383878-0’).addService(googletag.pubads());
googletag.defineSlot(‘/360007671/xx_bb’, [[970, 250], [970, 90], [728, 90]], ‘div-gpt-ad-1524001383878-1’).addService(googletag.pubads());
googletag.defineSlot(‘/360007671/xx_mpu’, [300, 250], ‘div-gpt-ad-1524001383878-2’).addService(googletag.pubads());
googletag.pubads().enableSingleRequest();
googletag.enableServices();
});
</script>

Post count: 22421

Hello,

You can place the code in the head section here: https://www.screencast.com/t/JRW8EQ3iCI3

Thanks.

Post count: 32

perfect thanks will this show the ad in the mobile theme as well?

Post count: 22421

For the mobile theme you need to place the code in the mobile header file: https://www.screencast.com/t/DbaKKX8JxC

Thanks.

Viewing 4 posts - 1 through 4 (of 4 total)
The forum ‘Newspaper’ is closed to new topics and replies.