Get Ad tag url of started ad.

282 views
Skip to first unread message

Raihan Abbas

unread,
Jul 17, 2018, 9:17:18 AM7/17/18
to Interactive Media Ads SDK
Hi IMA 
I am playing an Ad-Pod and I have a requirement where I have to save logs of each ad being played. 
These logs may contain information like start time and end time of Ad and most importantly URL of this particular Ad which is currently playing. 
I can calculate and get start and end time of each ad in Ad Pod by implementing onAdEvent listener's states "STARTED", "COMPLETED" and "ALL_ADS_COMPLETED" .
But I haven't found any help or guidelines to get current playing Ad's URL.
Is it something IMA SDK supports? if no what would you suggest?

ima-sdk-adv...@google.com

unread,
Jul 17, 2018, 12:08:45 PM7/17/18
to ima...@googlegroups.com
Hi,

The IMA SDK does not expose the ad's URL. It will not be possible to retrieve this information with the SDK's APIs.

Regards,
Chris Feldman
IMA SDK Team


=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+ page:
    http://googleadsdeveloper.blogspot.com
    https://plus.google.com/115658573333388777174/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

--
You received this message because you are subscribed to the Google Groups "Interactive Media Ads SDK" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ima-sdk+unsubscribe@googlegroups.com.
To post to this group, send email to ima...@googlegroups.com.
Visit this group at https://groups.google.com/group/ima-sdk.
For more options, visit https://groups.google.com/d/optout.

Raihan Abbas

unread,
Jul 19, 2018, 4:18:44 AM7/19/18
to Interactive Media Ads SDK
Hi Chris
Thanks for looking into this.

Raihan Abbas

unread,
Oct 30, 2018, 2:51:53 AM10/30/18
to Interactive Media Ads SDK
Hi Chris,
Do you have any plans to add some support in upcoming releases of IMA Android SDK which can allow extracting currently playing ad's URL from an Ad-Pod?
If no, can you suggest some workaround to get Video Ad's URL link?

ima-sdk-adv...@google.com

unread,
Nov 2, 2018, 4:23:44 PM11/2/18
to ima...@googlegroups.com
Hi Raihan,

You can get the video ad's url on the STARTED event by calling getMediaUrl()  method. I've attached the screenshot to help you get the video ad's url.

Regards,
Deepika Uragayala
IMA SDK Team
~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+ page:
    http://googleadsdeveloper.blogspot.com
    https://plus.google.com/115658573333388777174/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

mediaUrlScreenshot+from+2018-11-02+13-13-03.png
Reply all
Reply to author
Forward
0 new messages