How do I know if "disableInitialLoad" was called on the GPT?

I need to know if it was called googletag.pubads().disableInitialLoad(), in which case I will load the advertisement using calls displayand refresh, otherwise, I will load it using only display. My assumption is that if I always call displayplus refresh, I get 2 ad requests if I have not been called disableInitialLoad.

Is it possible to know?

+4
source share
1 answer

Pabad has an undocumented variable that internally saves the state disableInitialLoad, since it is not documented, you should use it at your own risk.

variable window.google_DisableInitialLoad

Hope you find it useful anyway.

+1
source

Source: https://habr.com/ru/post/1694836/


All Articles