Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Callback require when ad requests are fired from IMA sdk #151

Open
sourav14basu opened this issue Sep 14, 2024 · 5 comments
Open

Callback require when ad requests are fired from IMA sdk #151

sourav14basu opened this issue Sep 14, 2024 · 5 comments
Assignees
Labels

Comments

@sourav14basu
Copy link

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.

@sourav14basu sourav14basu changed the title Callback required when ad requests are fired from IMA sdk Callback require when ad requests are fired from IMA sdk Sep 14, 2024
@Kiro705 Kiro705 self-assigned this Sep 16, 2024
@Kiro705
Copy link
Member

Kiro705 commented Sep 16, 2024

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

@sourav14basu
Copy link
Author

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 ?

@Kiro705
Copy link
Member

Kiro705 commented Sep 19, 2024

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.

@sourav14basu
Copy link
Author

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.

@Kiro705
Copy link
Member

Kiro705 commented Sep 20, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants