Ads do not play when setMimeTypes in AdsRenderingSettings specifies MPD as MimeType for ads.

341 views
Skip to first unread message

pineapplevine1

unread,
Sep 26, 2022, 6:18:58 AM9/26/22
to Interactive Media Ads SDK
Hello.  
If MPD is specified for the ad MimeType in setMimeTypes of AdsRenderingSettings the ad will not play.
How can I play MPD ads with MimeType?

Spec:
- Android Studio Chipmunk | 2021.2.1
- Pixel5a Andriod11
- IMA Android SDK Version 3.26.0

Sample app:
  AdvancedExample.app  

Ad tag:  
Ad URL used in the sample app (see below)


Detail info:

In the code from line 143 of the VideoPlayerController class of the sample app.
- If MPD (application/dash+xml) is specified for MimeType ads will not play.  


    AdsRenderingSettings adsRenderingSettings =
        ImaSdkFactory.getInstance().createAdsRenderingSettings();
    adsRenderingSettings.setPlayAdsAfterTime(playAdsAfterTime);

    adsRenderingSettings.setMimeTypes(Arrays.asList("application/dash+xml"));   // <- here

    adsManager.init(adsRenderingSettings);


- If HLS (application/x-mpegURL) is specified for MimeType ads will play.


    AdsRenderingSettings adsRenderingSettings =
        ImaSdkFactory.getInstance().createAdsRenderingSettings();
    adsRenderingSettings.setPlayAdsAfterTime(playAdsAfterTime);

    adsRenderingSettings.setMimeTypes(Arrays.asList("application/x-mpegURL"));  // <- here

    adsManager.init(adsRenderingSettings);


- If MP4 (video/mp4) is specified for MimeType ads will play.


    AdsRenderingSettings adsRenderingSettings =
        ImaSdkFactory.getInstance().createAdsRenderingSettings();
    adsRenderingSettings.setPlayAdsAfterTime(playAdsAfterTime);

    adsRenderingSettings.setMimeTypes(Arrays.asList("video/mp4"));  // <- here

    adsManager.init(adsRenderingSettings);

- Error log when MPD is selected:  

com.google.ads.interactivemedia.v3.samples.videoplayerapp I/ImaExample: Ad Error: Linear assets were found in the VAST ad response, but none of them matched the video player's capabilities.  

IMA SDK

unread,
Sep 26, 2022, 2:54:58 PM9/26/22
to pineapp...@gmail.com, ima...@googlegroups.com
Hi Pineapplevine,

Thanks for getting back to us.

Note that the IMA SDK support the following media MIME types:

  • DASH: 'application/dash+xml'
  • HLS: 'application/x-mpegURL'
  • MP4: 'video/mp4'
  • MPEG: 'video/mpeg'
  • Ogg: 'video/ogg'
  • 3GPP: 'video/3gpp'
  • WebM: 'video/webm'
  • MP3: 'audio/mpeg'
  • MP4 audio: 'audio/mp4'

You may consider using one of those for IMA to recognize the format.

Regards,

Google Logo
Teejay Wennie
IMA SDK Team
 


ref:_00D1U1174p._5004Q2egNt3:ref

pineapplevine1

unread,
Sep 30, 2022, 3:04:55 AM9/30/22
to Interactive Media Ads SDK
Hello.  
I inquired last time that MPD cannot be played, but it means that DASH advertisements cannot be played.
How can setMimeTypes be set to play DASH ads?
Ads with DASH MimeType could not be played with the code described in detail info below.- If DASH (application/dash+xml) is specified for MimeType ads will not play.  



    AdsRenderingSettings adsRenderingSettings =
        ImaSdkFactory.getInstance().createAdsRenderingSettings();
    adsRenderingSettings.setPlayAdsAfterTime(playAdsAfterTime);

    adsRenderingSettings.setMimeTypes(Arrays.asList("application/dash+xml"));   // <- here

    adsManager.init(adsRenderingSettings);


- Error log when DASH is selected:  


com.google.ads.interactivemedia.v3.samples.videoplayerapp I/ImaExample: Ad Error: Linear assets were found in the VAST ad response, but none of them matched the video player's capabilities.

2022年9月27日火曜日 3:54:58 UTC+9 imasdk:

IMA SDK

unread,
Sep 30, 2022, 12:19:18 PM9/30/22
to pineapp...@gmail.com, ima...@googlegroups.com
Hi pineapplevine1,

Thank you for getting back to us.

I've tested our sample app with the latest IMA SDK v3.28.2, and didn't encounter the reported issue. With this, would it be possible for you to update your SDK version to the latest, then let me know how it goes? If you still encounter the issue, could you kindly provide to us a sample project via Reply to author option? This will greatly help us investigating the issue at hand.

pineapplevine1

unread,
Oct 6, 2022, 10:37:50 PM10/6/22
to Interactive Media Ads SDK
Hello.
Tested with latest version of IMA SDK v3.28.2.
Ad didn't play.

I would like to provide a sample application, but I cannot send it due to size restrictions.
Could you tell me how to send something?

specification:

- Android Studio Chipmunk | 2021.2.1
- Pixel 5a Andriod 13
-IMA Android SDK version 3.28.2

2022年10月1日土曜日 1:19:18 UTC+9 imasdk:

IMA SDK

unread,
Oct 7, 2022, 3:19:38 AM10/7/22
to pineapp...@gmail.com, ima...@googlegroups.com

Hello pineapplevine1,

 

Thank you for your response. You may send the sample application privately through the below upload form process.

 

If the file(s) you are looking to share are less than 25mb in total you can attach them to this case on your next reply. If you are having trouble attaching your file to this case or if your file(s) are larger than 25mb, you can share your files with me by performing the following steps:

 

1. Navigate to

https://docs.google.com/forms/d/e/1FAIpQLSfkAiXMeYP-fw1W3Z-tT9uwmATEKO5X6S-th0gR2ezdKaaqfg/viewform?usp=pp_url&entry.400550049=IMA+SDK&entry.460850823=5004Q00002egNt3QAE&entry.80707362=00136589

2. Fill out all fields, and attach your file(s).

3. Please reply back on this thread when you have uploaded your file(s). Please do not share this link.

 

Should you opt to directly share it on this thread, kindly reply privately via "Reply to Author" button.

 

Regards,

Google Logo
Michael Angelo
IMA SDK Team
 


ref:_00D1U1174p._5004Q2egNt3:ref

pineapplevine1

unread,
Oct 11, 2022, 1:04:02 AM10/11/22
to Interactive Media Ads SDK
I have uploaded the file.
Check please.

2022年10月7日金曜日 16:19:38 UTC+9 imasdk:

IMA SDK

unread,
Oct 11, 2022, 10:47:29 PM10/11/22
to pineapp...@gmail.com, ima...@googlegroups.com

Hello,

 

Thank you for providing additional details. I was able to reproduce the same behavior, and this could simply mean that the player in used in the sample app does not support playing dash type mediafiles, as the error itself is referring to the video player's capabilities and not the ad type. However, to further confirm this scenario, allow me to raise the concern to the rest of our team. We will provide more information on this thread once we received their feedbacks.

Regards,

IMA SDK

unread,
Oct 17, 2022, 12:21:45 PM10/17/22
to ima...@googlegroups.com, pineapp...@gmail.com
Hello,

I hope you're safe and doing fine. Thank you for your patience.

The team provided their feedback and asking if there a specific ad tag that contains assets with a mimetype of "application/dash+xml"? The reason for this is because the shared sample app contains our sample tags which do not have "application/dash+xml" assets. Right now it is expected behavior that no adds will play, if there are no assets the match what is supplied in setMimeTypes.

Regards,
Google Logo
Teejay Wennie
IMA SDK Team
 


ref:_00D1U1174p._5004Q2egNt3:ref

pineapplevine1

unread,
Oct 25, 2022, 6:10:28 AM10/25/22
to Interactive Media Ads SDK
Hello,imasdk

Thank you for your response.

Regarding the "application/dash+xml" asset,I think the "application/dash+xml" asset exists for the sample tag in the shared sample app.

eg. 
I use a browser to view the sample tag,and was able to retrieve "application/dash+xml" for mimeType.

retrieve dash.PNG


Please confirm if my understanding is correct. If not correct, how to tell if "app/dash+xml" asset exists.

Regards,

2022年10月18日火曜日 1:21:45 UTC+9 imasdk:

IMA SDK

unread,
Oct 25, 2022, 12:21:04 PM10/25/22
to pineapp...@gmail.com, ima...@googlegroups.com
Hello,

Thank you for getting back to us. Let me confirm this to the team and get back to you the soonest.

pineapplevine1

unread,
Jul 10, 2023, 3:02:08 AM7/10/23
to Interactive Media Ads SDK
Hi, 

Is there any update on this issue?
Thanks.

2022年10月26日水曜日 1:21:04 UTC+9 IMA SDK:

Assistant Chaleko

unread,
Jul 10, 2023, 3:03:35 AM7/10/23
to pineapplevine1, Interactive Media Ads SDK
Nothing yet 

--
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+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ima-sdk/bbf34165-36ca-4dc8-b600-18712cae8253n%40googlegroups.com.
--
Warm Regards
Assistant Chaleko
Sales Executive
Beatz On Lights City PTY LTD
100% Black owned Company
Tel :  011 050 7720
Cell : 061 447 6896
Fax Number: 086 604 7716

IMA SDK

unread,
Jul 10, 2023, 8:17:47 AM7/10/23
to beatzonl...@gmail.com, ima...@googlegroups.com, pineapp...@gmail.com
Hello everyone,

It seems that our response didn't went though. Below is our response to the issue reported on this thread.

The team provided their feedback and mentioned that the reported use case here is normal behavior of the SDK. IMA is selecting the appropriate URL (there is only one for 'application/dash+xml'). Beyond that, IMA does not have control over the actual bitrate for the media. This is determined by the network strength and media player.
 
This message is in relation to case "ref:_00D1U1174p._5004Q2egNt3:ref"

Thanks,
 
Google Logo IMA SDK Team

 

Reply all
Reply to author
Forward
0 new messages