Get the creative id when IMA returns an error

32 views
Skip to first unread message

Nathan NAHUM

unread,
May 23, 2024, 1:21:56 AMMay 23
to Interactive Media Ads SDK

Hi guys - hope you are well,

I have a player where I use IMA to load an advertising video from a vast tag. I'd like to be able to retrieve the creative id in order to match it with the GAM creative id. I can retrieve the creative id when IMA manages to load the video, but I can't retrieve the creative id when IMA returns a vast error code.

My goal is to be able to identify the creatives that make the most errors (by type of error), so I need to retrieve this creative id when IMA fails to load the ad, when there's been a vast error.

Maybe I'm missing something, but can you tell me/help me how to retrieve the creative id from the IMA response when it's in error and returns a 302,303 etc. error? I only have the error code information.

For this I am listening
this.adsLoader.addEventListener(
        google.ima.AdErrorEvent.Type.AD_ERROR,
        this.onAdRequestErrorWaterfall.bind(this),
        false);
       
In my function onAdRequestErrorWaterfall(adErrorEvent), functions adErrorEvent.getUserRequestContext(), adErrorEvent.getError() work well, but I don't have any information about advertising, the creative id.

Thank you for your feedback, it would be very helpful.

Nathan NAHUM

unread,
May 23, 2024, 1:22:00 AMMay 23
to Interactive Media Ads SDK

IMA SDK

unread,
May 23, 2024, 8:24:47 AMMay 23
to nat...@digiteka.com, ima...@googlegroups.com

Hi Nathan,
Thank you for contacting the IMA SDK support team.

In the success response, the creativeID identifies a successful ad load, as you mentioned. However, it is not possible to retrieve the creativeID in the event of a failure, as vast errors do not contain any information. For instance, if you are retrieving one pre-roll ad, the creativeID will be provided in the success response. If the ad is empty, no creativeID will be available. In the failure response you will get type, code and message as per this IMAAdError

Kindly examine the creativeID for additional information.
 
This message is in relation to case "ref:!00D1U01174p.!5004Q02tJ4LW:ref" (ADR-00236165)

Thanks,
 
Google Logo IMA SDK Team


Reply all
Reply to author
Forward
0 new messages