initializeAds()
With the following code snippet
AdDisplayContainer container =
ImaSdkFactory.createAudioAdDisplayContainer(context, imaService.imaVideoAdPlayer);
CompanionAdSlot companionAdSlot = sdkFactory.createCompanionAdSlot();
When this line is commented out you will see that ads are no longer able to be served. Which would indicate to me that this is where the AdView is being created and programmatically placed into the app.
If this is for iOS this seems to be a bit more problematic. If you can let us know what platform you are using so we can delve deeper into it for you.
Regards,
|
||||||
Hi there,
Thank you for your message. Could you please elaborate further on this? “...should be a way to load ads without an AdView”. Also, were you able to use our document pertaining to the use case you’re achieving? If yes, could you please share with us any issues you have encountered so we can check?
Regards,
|
||||||
Hi there,
Thanks for your response and clarification. Please note that IMAAdDisplayContainer is one of the parameters being used for IMAAdsRequest. That means, when this parameter is removed or not included, you might get an issue during the ad request.
Given the documentation you provided, could you kindly confirm that your content is playing before calling requestAds? That way, you can make a request in the background. Also, I’m wondering if you can replicate this issue with one of our sample apps. If you can, then could you please share with us the following information so that we can investigate the issue as well?
|
||||||
|
||||||
Hello,
Thank you for getting back to us.
It appears that you have replied to an old thread. With regards to your concern, could you confirm if the documentation for Background audio ad playback fits your current use case for requesting ads in the background? This documentation guide is intended for iOS publishers interested in adding background audio ad playback to their IMA SDK implementation. This allows the app to request ads in the background. It also allows the app to enter the background and continue to play an ad to completion.
If this is not what you are looking for, could you elaborate the feature you like to achieve so we could provide appropriate guidance according to the latest iOS versions? Asking this since this is an old thread and so our team could also further check what's available in our latest implementations.
Looking forward to your response.
Reference Link:
Regards,
IMA SDK Team |