Callback require when ad requests are fired from IMA sdk
We use exoplayer ima extension for ads and content playback. Is there a way to get an event whenever ad requests are getting fired from IMA sdk (and same can be transmitted via exoplayer ima extension). Currently 1st intimation for this is AdEventType.LOADED which comes once ad is loaded.
Hello @sourav14basu ,
Since ad requests are initiated by the client, there is not a specific IMA ad event related to requesting ads. An IMA ad request is initiated when the client calls AdsLoader.requestAds().
Please let me know if you have any additional questions.
Thank you, Jackson IMA SDK team
Hi Jackson, Thanks for your reply.
I checked exo ima extension code and this is the only place where I see requestAds() Ln no:571. been called.
private AdsLoader requestAds(....) { ... ... adsLoader.requestAds(request); return adsLoader; }
And when I put log, it only gets triggered during preroll and NOT during mid roll. How can we get the same for mid roll ?
Hello @sourav14basu ,
How are you initiating a request for mid-roll ads? If you are loading a VMAP ad tag, IMA only requests the ads once. The first event related to the mid-roll ad of a VMAP tag is the LOADED event.
Please let me know if you have any follow-up questions.
Hi Jackson,
Midrolls requests are initiated from IMA sdk side. We need a callback when IMA fires the mid roll request. I want to create publisher side fillrate calculation from client side app code. Something like this -- > sum(adrequest) = sum(adload) + Sum(ad error(LOG event)) + sum(ad_break_fetch_error) So the ask is - first event in the ad lifecycle to be adrequest and then rest of the existing events like LOADED, CONTENT_PAUSE_REQESTED ETC continues as is. Let me know if this clarifies the ask.
Hello @sourav14basu ,
I don't think that would be feasible with the current features of the IMA SDK. I would recommend reaching out on the IMA technical forum to have this added as a feature request for a new IMA event.
This GitHub issues queue is specific to issue or questions related to the sample apps here.