diff --git a/src/createManager.js b/src/createManager.js index e97abca..68304a3 100644 --- a/src/createManager.js +++ b/src/createManager.js @@ -443,7 +443,7 @@ export class AdManager extends EventEmitter { reject(new Error("window.googletag is not available")); } }; - if (window.googletag) { + if (window.googletag && googletag.apiReady) { onLoad(); } else { const script = document.createElement("script");