Android IMA ExoPlayer extension AdsLoader

157 views
Skip to first unread message

Adrian Rodriguez

unread,
Jun 29, 2018, 9:24:01 AM6/29/18
to Interactive Media Ads SDK
Hi,

We recently migrated to the IMA ExoPlayer extension. Our app switches between streams frequently and it's a single activity with the player loading the streams. 

In our older implementation we were told the AdsLoader should be kept as long as the app lives. But with the current IMA extension from exoplayer, we need to recreate the ads loader with...

final ImaAdsLoader imaAdsLoader = imaAdsLoaderBuilder.buildForAdTag(adTagUrl);

... on every stream load and adTagUrl. Is this desired?

ima-sdk-adv...@google.com

unread,
Jun 29, 2018, 3:40:03 PM6/29/18
to ima...@googlegroups.com
Hi Adrian,

That should be fine as long as you have an AdsLoader object for the lifecycle of your stream. So yes, it would be fine if you request this on every stream load.

Regards,
Deepika Uragayala
IMA SDK Team
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+ page:
    http://googleadsdeveloper.blogspot.com
    https://plus.google.com/115658573333388777174/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

--
You received this message because you are subscribed to the Google Groups "Interactive Media Ads SDK" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ima-sdk+unsubscribe@googlegroups.com.
To post to this group, send email to ima...@googlegroups.com.
Visit this group at https://groups.google.com/group/ima-sdk.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages