Hello,
Thank you for raising your concern to the IMA SDK forum.
As a best practice, it is recommended to only maintain one instance of ima.AdsLoader for the entire lifecycle of a page. To make additional ad requests, create a new ima.AdsRequest object, but re-use the same ima.AdsLoader. When ads are loaded successfully, the ima.AdsLoader emits an ADS_MANAGER_LOADED event. Parse the event passed to the callback to initialize the AdsManager object. The AdsManager loads the individual ads as defined by the response to the ad tag URL.
For your concern, we recommend that your follow the SDK lifecycle, kindly refer to this document: https://developers.google.com/interactive-media-ads/docs/sdks/html5/client-side/architecture#lifecycle where it shows the lifecycle diagram of the function calls made by you and events fired by the SDK.
Let me know if you have any questions and specify the IMA SDK implementation and platform you are using.
Regards,
![]() |
IMA SDK Team |
Hello,
Thank you for getting back to us.
I understand that your implementation is different. With this, would you be able to specify the IMA SDK implementation and platform you are using as mentioned in our previous response? This is so we could provide appropriate guidance and insights for your use case.
If it helps, you may check the following links for handling multiple ad requests in different platforms. Please let us know if this fits your use case.