Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IMA SDK Error : Uncaught TypeError: this.adsManager is undefined #25

Open
alamboley opened this issue Feb 6, 2021 · 0 comments
Open

Comments

@alamboley
Copy link

Hello,

Since the library on the cdn seems to not be available https://cdn.jsdelivr.net/npm/@azerion/h5-ad-wrapper@latest/build/h5-ad-wrapper.umd.js I grab it via npm install @azerion/h5-ad-wrapper.

I'm using CreateJS, and this is my code:

<!-- in my index.html -->
<script type="text/javascript" src="//imasdk.googleapis.com/js/sdkloader/ima3.js"></script>
<script type="text/javascript" src="js/h5-ad-wrapper/h5-ad-wrapper.umd.js"></script>
// in my Main.js
var provider = new h5ads.Ima3(canvas, 'https://pubads.g.doubleclick.net/gampad/ads?sz=640x480&iu=/124319096/external/single_ad_samples&ciu_szs=300x250&impl=s&gdfp_req=1&env=vp&output=vast&unviewed_position_start=1&correlator' );
h5ads.adWrapper.setAdProvider(provider);

// then later 
h5ads.adWrapper.showAd();

In the browser console I've:
Sans titre-1

Any ideas? It seems onAdManagerLoader is never called.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant