הבדלים בין גרסאות בדף "Widget:DFP2"
מתוך ויקירפואה
שורה 2: | שורה 2: | ||
<div id='div-gpt-ad-1545206095900-0' style='height:600px; width:120px;'> | <div id='div-gpt-ad-1545206095900-0' style='height:600px; width:120px;'> | ||
<script> | <script> | ||
+ | var mapping1 = googletag.sizeMapping(). | ||
+ | addSize([0, 0], []). | ||
+ | addSize([1050, 200], [120, 600]). // Desktop | ||
+ | build(); | ||
googletag.cmd.push(function() { | googletag.cmd.push(function() { | ||
− | googletag.defineSlot('/75830016/wikirefua_desktop_search_skyscraper_120x600', [120, 600], 'div-gpt-ad-1545206095900-0').addService(googletag.pubads()); | + | googletag.defineSlot('/75830016/wikirefua_desktop_search_skyscraper_120x600', [120, 600], 'div-gpt-ad-1545206095900-0').defineSizeMapping(mapping1).addService(googletag.pubads()); |
googletag.pubads().enableSingleRequest(); | googletag.pubads().enableSingleRequest(); | ||
googletag.pubads().collapseEmptyDivs(); | googletag.pubads().collapseEmptyDivs(); |
גרסה מ־17:45, 14 בינואר 2019
<script> var mapping1 = googletag.sizeMapping().
addSize([0, 0], []). addSize([1050, 200], [120, 600]). // Desktop build(); googletag.cmd.push(function() { googletag.defineSlot('/75830016/wikirefua_desktop_search_skyscraper_120x600', [120, 600], 'div-gpt-ad-1545206095900-0').defineSizeMapping(mapping1).addService(googletag.pubads()); googletag.pubads().enableSingleRequest(); googletag.pubads().collapseEmptyDivs(); googletag.pubads().setTargeting('search', []).setTargeting('expertise', []).setTargeting('url', []).setTargeting('validation', []); googletag.enableServices();
googletag.display('div-gpt-ad-1545206095900-0');
});
</script>