How to get pod position from IMA sdk in case if there is Ad break fetch error

163 views
Skip to first unread message

Chinmay Mujumdar

unread,
Jun 6, 2022, 8:34:55 AM6/6/22
to Interactive Media Ads SDK
Hi,
We need to log an event in case if there is an ad break fetch error while fetching ad at one of the pod position. In onAdEvent(adEvent: AdEvent) we get Ad object as null when there is AD_BREAK_FETCH_ERROR. Is there a way to get the pod position in this case so that we can log correct pod position value ?

Regards,
Chinmay Mujumdar

IMA SDK

unread,
Jun 7, 2022, 1:02:47 AM6/7/22
to mujumdarc...@gmail.com, ima...@googlegroups.com

Hello Chinmay,

 

Michael here from IMA SDK Team. Thank you for reaching out to us.

 

I believe the getAdPosition from the AdPodInfo class should be the one you are using as this will return a number for the position of the ad within the pod. The value returned is one-based, i.e. 1 of 2, 2 of 2, etc. You may also utilize the AdError and AdErrorEvent classes in logging the errors thrown by the SDK.

Regards,

Google Logo
Michael Angelo
IMA SDK Team
 


ref:_00D1U1174p._5004Q2bcbNF:ref

Chinmay Mujumdar

unread,
Jun 7, 2022, 1:29:56 AM6/7/22
to Interactive Media Ads SDK
Hi Michael,
getAdPosition in AdPodInfo is only available when ad fetch is successful. How can we get the pod position in case we get AD_BREAK_FETCH_ERROR  because ad object(AdPodInfo) is null hence there is no way to get ad position. Is there any other way we can get that information ? Error messages we can get from AdError and AdErrorEvent  but they do not provide ad position. How to get that ?

Regards,
Chinmay

IMA SDK

unread,
Jun 7, 2022, 11:18:05 PM6/7/22
to mujumdarc...@gmail.com, ima...@googlegroups.com

Hello Chinmay,

 

Thanks for your response. I believe there is no current method to fit to what you need. However, I could raise this to the rest of our team for further clarification or as a feature request. But before that, would you be able to share with us your use case in business terms and how this will help or improve the performance for such usage?

Regards,

Chinmay Mujumdar

unread,
Jun 14, 2022, 9:14:05 AM6/14/22
to Interactive Media Ads SDK

Hi Michael,
Our use case is to send error event(for analytics) when there was an error in fetching the ad. We would like to log the position of the ad at which error occurred. 

Also currently we have handled error scenario for ad break fetch error in case of AD_BREAK_FETCH_ERROR event and adsLoader?.addAdErrorListener { adError ->} in this callback. Is there any other place where we could get error events in case there is issue in fetching the ad ?

Regards,
Chinmay Mujumdar

IMA SDK

unread,
Jun 15, 2022, 3:01:30 AM6/15/22
to mujumdarc...@gmail.com, ima...@googlegroups.com
Hello Chinmay,

I work along with Micheal. Thank you for providing the requested information. I've submitted a feature request including your use case to the team. With this, we would recommend to keep an eye on our release notes for updates on our SDK.

As per error events, the only available method which you can utilize is the AdError and AdErrorEvent classes.

Regards,
Google Logo
Teejay Wennie
IMA SDK Team
 


ref:_00D1U1174p._5004Q2bcbNF:ref
Reply all
Reply to author
Forward
0 new messages