Advertisement
Guest User

Untitled

a guest
Oct 21st, 2019
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. <?php $slotname = 'div-gpt-ad-1537308433594-0'. $alm_item .''; // Generate unique ID for the ad slot ?>
  2. <div id='<?php echo $slotname; ?>'></div>
  3. <script>
  4. googletag.cmd.push(function() {
  5. var slot = googletag.defineSlot('/168615172/GT_EU_728x90', [[728, 90], [300, 60]], '<?php echo $slotname; ?>').
  6. setTargeting('pos', ['1']).
  7. addService(googletag.pubads());
  8. // Display has to be called before
  9. // refresh and after the slot div is in the page.
  10. googletag.display('<?php echo $slotname; ?>');
  11. googletag.pubads().refresh([slot]);
  12. });
  13. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement