From 078a402d4b47d073884c24887490fbeab2424fb5 Mon Sep 17 00:00:00 2001 From: Madhukar Kedlaya Date: Thu, 20 Apr 2017 09:52:05 -0700 Subject: [PATCH] Update createManager.js --- src/createManager.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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");