Created
May 11, 2022 14:16
-
-
Save marufsiddiqui/c4a07b7ec52e78e4d1c64520d87e4d82 to your computer and use it in GitHub Desktop.
gpt.js
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
targetingEntries.forEach(([key, value]) => { | |
if (key && value) { | |
googletag.cmd.push(() => googletag.pubads().setTargeting(key, value)) | |
} | |
}) | |
googletag.cmd.push(() => { | |
const slots = googletag.pubads().getSlots() | |
if (slots?.length) { | |
googletag.pubads().refresh() | |
} | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment