Hi,
How can I integrate Google Double-click in the mt ad?
It relates the following website: http://marketinginfarma.nl
Sidebar top ad:
– Advertentie –
Sidebar middle ad:
– Advertentie –
Head:
var googletag = googletag || {};
googletag.cmd = googletag.cmd || [];
googletag.cmd.push(function() {
var mapleaderboard = googletag.sizeMapping()
.addSize([890, 100], [728, 90])
.addSize([300, 100], [300, 250])
.build();
var maprectangle = googletag.sizeMapping()
.addSize([890, 100], [300, 250])
.addSize([0,0], [])
.build();
googletag.defineSlot(‘/X/MIF_Leaderboard’, [[300, 250], [728, 90]], ‘div-gpt-ad-X’)
.defineSizeMapping(mapleaderboard)
.addService(googletag.pubads());
googletag.defineSlot(‘/X/MIF_Rectangle’, [300, 250], ‘div-gpt-ad-X’)
.defineSizeMapping(maprectangle)
.addService(googletag.pubads());
googletag.pubads().enableSingleRequest();
googletag.pubads().collapseEmptyDivs();
googletag.enableServices();
});
Body:
div-gpt-ad-X
googletag.cmd.push(function() { googletag.display(‘div-gpt-X’); });
div-gpt-ad-X
googletag.cmd.push(function() { X’); });
Hi Jean,
Unfortunately, this isn’t possible without a fair amount of custom coding. This is beyond the scope of what we can help you with on our forums, but you could hire a developer to implement this for you.
We recommend using Codeable. You’ll be able to hire someone at an hourly rate to do this work for you.