Hi Abilash,
The undefined error in Ad Manager generally indicates an issue with the initialization of the ads manager object. When initializing the ad manager, you have provided document.getElementById("videoadcontainer").clientWidth and document.getElementById("videoadcontainer").clientHeight as arguments. These expressions return null, which is why you are getting the “adsManager is undefined” error.
Please check the function playAds() in Google HTML Sample Application for your reference.
Kindly reach out to us, if you need any further assistance.
IMA SDK Team |