Created
February 18, 2019 19:47
-
-
Save alexdeborba/5d4926adf1c2e6b473959482fd2c7d86 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript"> | |
var gptadslots = []; | |
var googletag = googletag || {}; | |
googletag.cmd = googletag.cmd || []; | |
(function() { | |
var gads = document.createElement('script'); | |
gads.async = true; | |
gads.type = "text/javascript"; | |
var useSSL = "https:" == document.location.protocol; | |
gads.src = (useSSL ? "https:" : "http:") + "//www.googletagservices.com/tag/js/gpt.js"; | |
var node = document.getElementsByTagName("script")[0]; | |
node.parentNode.insertBefore(gads, node); | |
})(); | |
</script> | |
<script> | |
var gptAdSlots = []; | |
googletag.cmd.push(function() { | |
/* header */ | |
var mappingheader = googletag.sizeMapping(). | |
addSize([1248, 0], [[728, 90], [970, 90]]). | |
addSize([1000, 690], [[728, 90], [970, 90]]).build(); | |
/* top */ | |
var mappingtop = googletag.sizeMapping(). | |
addSize([1248, 0], [300, 250]). | |
addSize([1000, 690], [300, 250]). | |
addSize([320, 0], [320, 50]).build(); | |
/* middle */ | |
var mappingmiddle = googletag.sizeMapping(). | |
addSize([1248, 0], [300, 600], [300, 250]). | |
addSize([1000, 690], [[300, 600],[300, 250]]). | |
addSize([320, 0], [320, 50]).build(); | |
/* bottom */ | |
var mappingbottom = googletag.sizeMapping(). | |
addSize([1248, 0], [300, 250]). | |
addSize([1000, 690], [300, 250]). | |
addSize([320, 0], [320, 50]).build(); | |
/* footer */ | |
var mappingfooter = googletag.sizeMapping(). | |
addSize([1248, 0], [970, 90]). | |
addSize([1000, 690], [[728, 90],[970, 90]]). | |
addSize([320, 0], [320, 50]).build(); | |
/* header */ | |
gptAdSlots[1] = googletag.defineSlot('/45051028/aeon-header-gadm', [[728, 90], [970, 90]], | |
'div-gpt-ad-1550251905755-0').defineSizeMapping(mappingheader).addService(googletag.pubads()); | |
googletag.pubads().setTargeting("doubleclick","responsive"); | |
/* top */ | |
gptAdSlots[2] = googletag.defineSlot('/45051028/aeon-top-gadm', [[300, 250], [320, 50]], | |
'div-gpt-ad-1550252129049-0').defineSizeMapping(mappingtop).addService(googletag.pubads()); | |
googletag.pubads().setTargeting("doubleclick","responsive"); | |
/* middle */ | |
gptAdSlots[3] = googletag.defineSlot('/45051028/aeon-middle-gadm', [[300, 250], [300, 600], [320, 50]], | |
'div-gpt-ad-1550252642909-0').defineSizeMapping(mappingmiddle).addService(googletag.pubads()); | |
googletag.pubads().setTargeting("doubleclick","responsive"); | |
/* bottom */ | |
gptAdSlots[4] = googletag.defineSlot('/45051028/aeon-bottom-gadm', [[300, 250], [320, 50]], | |
'div-gpt-ad-1550254373578-0').defineSizeMapping(mappingbottom).addService(googletag.pubads()); | |
googletag.pubads().setTargeting("doubleclick","responsive"); | |
/* footer */ | |
gptAdSlots[5] = googletag.defineSlot('/45051028/aeon-footer-gadm', [[320,50], [728,90], [970,90]], | |
'div-gpt-ad-1550253744049-0').defineSizeMapping(mappingfooter).addService(googletag.pubads()); | |
googletag.pubads().setTargeting("doubleclick","responsive"); | |
googletag.pubads().enableSingleRequest(); | |
googletag.pubads().collapseEmptyDivs(); | |
googletag.enableServices(); | |
}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment