1

Is this possible to detect if disableInitialLoad() was already invoked on the page?

Itay Elgazar
  • 125
  • 10

1 Answers1

1

There's an API method you can use:

// The following is true if disableInitialLoad() was called
googletag.pubads().isInitialLoadDisabled()

You can use this to detect whether or not you need to run googletag.pubads().refresh(), for instance.

gernberg
  • 2,587
  • 17
  • 21
Perry Mitchell
  • 665
  • 6
  • 16