Vast with multiple ads - identify which ads were called

622 views
Skip to first unread message

Nave

unread,
May 28, 2019, 9:25:30 AM5/28/19
to Interactive Media Ads SDK
Hi

We are checking using IMA SDK for Android/iOS for playing inline ads
We have a vast tag with multiple ads, each is a wrapper to another vast url that may return a vast or not
Assuming IMA is calling the ads one after the other till it finds an ad that returns a valid vast with MP4 media, is there a way to tell what ads were called in the process?

For example:
<Vast...>
  <Ad>...</Ad>
  <Ad>...</Ad>
  <Ad>...</Ad>
  <Ad>...</Ad>
</Vast>

We would like to know when each call to an ad in the vast was called and if it returned a valid vast with media and not just the overall process

IMA SDK

unread,
May 28, 2019, 3:28:11 PM5/28/19
to itay...@gmail.com, ima...@googlegroups.com
Hi,

Thank you for reaching out to us. You can easily know what ad was called in the process by retrieving the current ad class. It's an object that holds data corresponding to the master Ad. Once the current ad class is retrieved, you can call the methods listed here, for example, you can retrieve the current ad id by calling the getAdId() api method. Please note that the ad class can be retrieved by calling the .getAd() method on the event object during the STARTED event.

Regards,
Arnaud Casame
IMA SDK Team

ref:_00D1U1174p._5001UAqpNB:ref

Nave

unread,
May 28, 2019, 3:36:09 PM5/28/19
to Interactive Media Ads SDK
So, if I have the following:

The first vast cal return the following response:
<Vast...>
  <Ad id=1>...</Ad>
  <Ad id=2>...</Ad>
  <Ad id=3>...</Ad>
  <Ad id=4>...</Ad>
</Vast>
I do not know what ads are returned

Now IMA call the wrapper in ad id=1, lets assume no vast is returned
Now IMA call the wrapper in ad id=2
And so on

How do I know that ad id=1 is called?
The Ad object is returned only for ads that return vast in the Loaded event



IMA SDK

unread,
May 28, 2019, 5:38:11 PM5/28/19
to itay...@gmail.com, ima...@googlegroups.com
Hi,

You'll be able to see that the ad with id = 1 failed in your reports but you won't be able to retrieve the ad info dynamically. You'll have an ad error event notifying you that the ad request returned an Empty VAST but you won't be able to retrieve the ad id that failed.
Reply all
Reply to author
Forward
0 new messages