We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a10e659 commit f192b6fCopy full SHA for f192b6f
1 file changed
src/components/GoogleScripts.tsx
@@ -99,12 +99,14 @@ function Gad({
99
.defineSlot?.('/23278945940/TopLevel', adSlot.sizes, adSlot.id)
100
.addService(googletag.pubads?.())
101
.setTargeting(adSlot.targeting, [adSlot.targeting])
102
+ googletag.pubads?.().enableSingleRequest()
103
+ googletag.enableServices?.()
104
+ googletag.display?.(adId)
105
+ } else {
106
107
+ googletag.pubads?.().refresh([adSlot.slot])
108
}
109
- googletag.pubads?.().enableSingleRequest()
- googletag.enableServices?.()
- googletag.display?.(adId)
-
110
// Set individual refresh intervals for each ad
111
const interval = setInterval(function () {
112
cmd.push(function () {
0 commit comments