You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
where AdService is wrapping Adslot with DFPSlotsProvider as above.
Sometimes I'm getting below error:
More debugging showed me:
It seems like, registeredSlots have adSlot 3, 4 and 5, but we're still trying to render adSlot 0. Somehow the slots are updated with increased indexes, but the library is unaware of that. I thought maybe in somewhere I'm calling DFPManager.refresh(); but that's not the case.
Any idea why this happening? I spent more than 2 days in this.
The text was updated successfully, but these errors were encountered:
asimqt
changed the title
Ads are not loading intermittently
Ads are not loading intermittently. Hard refresh works.
Mar 2, 2020
hi @asimqt, according what you describe your code is rendering more than one instance of our custom component: AdService, which ends up in multiple instances of the <DFPSlotsProvider>, right?.
There should be only one instance of DFPSlotsProvider in the page, declaring more than one will lead to unexpected/buggy behaviors like what you describe.
Version:
0.17.1
. (Experienced same behavior with0.11
also)Ads are rendering as:
There's a wrapper component like:
<AdService {...props}/>
where
AdService
is wrappingAdslot
withDFPSlotsProvider
as above.Sometimes I'm getting below error:
More debugging showed me:
It seems like,
registeredSlots
have adSlot 3, 4 and 5, but we're still trying to render adSlot 0. Somehow the slots are updated with increased indexes, but the library is unaware of that. I thought maybe in somewhere I'm callingDFPManager.refresh();
but that's not the case.Any idea why this happening? I spent more than 2 days in this.
The text was updated successfully, but these errors were encountered: