Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php $slotname = 'div-gpt-ad-1537308433594-0'. $alm_item .''; // Generate unique ID for the ad slot ?>
- <div id='<?php echo $slotname; ?>'></div>
- <script>
- googletag.cmd.push(function() {
- var slot = googletag.defineSlot('/168615172/GT_EU_728x90', [[728, 90], [300, 60]], '<?php echo $slotname; ?>').
- setTargeting('pos', ['1']).
- addService(googletag.pubads());
- // Display has to be called before
- // refresh and after the slot div is in the page.
- googletag.display('<?php echo $slotname; ?>');
- googletag.pubads().refresh([slot]);
- });
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement