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