IMA SDK for Android does not play preloaded Ad Pod

327 views
Skip to first unread message

Raihan Abbas

unread,
Aug 16, 2018, 9:33:39 AM8/16/18
to Interactive Media Ads SDK
Dear IMA Team 
I am playing and Ad pod with preloading enabled using the following
renderingSettings.setEnablePreloading(true);


Calling  
mAdsManager.start();

starts to play this preloaded ad and it works fine.
Albeit, the same approach is not working in case of an Ad_Pod and the first frame of Video Ad_Pod gets stuck.
Any suggestions please 
Thanks

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

unread,
Aug 16, 2018, 3:50:28 PM8/16/18
to ima...@googlegroups.com
Hi,

Thank you for reaching out to support. Can you share the ad pod that you're having issues with?

Regards,
Chris Feldman
IMA SDK Team

--
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.
Message has been deleted

Raihan Abbas

unread,
Aug 17, 2018, 3:05:14 AM8/17/18
to Interactive Media Ads SDK
Hi Chris 
Thanks for your consideration here is the VAST Ad-Pod below that please have a look
<VAST version="3.0">
    <Ad id="123" sequence="6">
        <InLine>
            <AdSystem version="4.11.0-10">LiveRail</AdSystem>
            <Creatives>
                <Creative sequence="1" id="331">
                    <Linear>
                        <Duration>00:00:10</Duration>
                        <MediaFiles>
                            <MediaFile delivery="progressive" bitrate="400" width="320" height="180" type="video/mp4">
                                <![CDATA[ http://clips.vorwaerts-gmbh.de/VfE_html5.mp4 ]]>
                            </MediaFile>

                        </MediaFiles>
                    </Linear>
                </Creative>
            </Creatives>
        </InLine>
    </Ad>
    <Ad id="123" sequence="5">
        <InLine>
            <AdSystem version="4.11.0-10">LiveRail</AdSystem>
            <Creatives>
                <Creative sequence="1" id="331">
                    <Linear>
                        <Duration>00:00:10</Duration>

                        <MediaFiles>
                            <MediaFile delivery="progressive" bitrate="400" width="320" height="180" type="video/mp4">
                                <![CDATA[http://clips.vorwaerts-gmbh.de/VfE_html5.mp4]]>
                            </MediaFile>

                        </MediaFiles>
                    </Linear>
                </Creative>
            </Creatives>
        </InLine>
    </Ad>
</VAST>

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

unread,
Aug 17, 2018, 3:54:16 PM8/17/18
to ima...@googlegroups.com
Hi Raihan,

Can you please make sure that your ad follows the proper VAST spec and then try again? There are at least a few issues with your tag. For example, the sequence attribute is meant to denote the order in which an ad will play, but your VAST uses "6", with two "1"s nested inside. You've also marked 10 seconds as the duration of your ad when the media file being loaded is one minute long.

Regards,
Chris Feldman
IMA SDK Team

Raihan Abbas

unread,
Aug 27, 2018, 10:33:39 AM8/27/18
to Interactive Media Ads SDK

Hi Chris,
I have tried changing the sequence attribute and ID of both ads but it's still not working. Please download the Ad-Pod attached.
Moreover, attached sample Ad-Pod works fine without preloading feature enabled.
However, single VAST ad is working with preloading enabled and starts playing instantly without further loading ad. 
My implementation details are as follows:
 mAdsLoader.addAdsLoadedListener(new AdsLoader.AdsLoadedListener() {
                @Override
                public void onAdsManagerLoaded(AdsManagerLoadedEvent adsManagerLoadedEvent) {
                    // Ads were successfully loaded, so get the AdsManager instance. AdsManager has
                    // events for ad playback and errors.
                    mAdsManager = adsManagerLoadedEvent.getAdsManager();
                    // Attach event and error event listeners.
                    mAdsManager.addAdEventListener(InitIMA.this);
                    renderingSettings = ImaSdkFactory.getInstance().createAdsRenderingSettings();
                    renderingSettings.setUiElements(Collections.<UiElement>emptySet());
                    renderingSettings.setEnablePreloading(true);
                    mAdsManager.init(renderingSettings);
                }

And I am starting AdsManager after 20 seconds like below.
  ....
  initIMA.requestAds(adUrls);
        Handler andler = new Handler();
        andler.postDelayed(new Runnable() {
            @Override
            public void run() {
               mAdsManager.start();
            }
        }, 20000);

Thank you very much for your kind support.
Ad_Pod.txt

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

unread,
Aug 31, 2018, 4:45:49 AM8/31/18
to ima...@googlegroups.com
Hi Raihan,

Thank you for providing an updated Ad Pod, as well as additional details about your implementation for us to investigate further.

Apologies for the delayed response as we were trying this on our end. I can see the behavior you described when enabling preloading. I also noticed that the ads are automatically being played regardless when adsManager.start() is called when preloading is enabled. The ad is also being paused and frozen when start() is called a few seconds later (similar to your implementation).

Let us dig into this deeper and get back to you once we have more information.

Regards,
Steven Balan
IMA SDK Team
Message has been deleted

Raihan Abbas

unread,
Oct 9, 2018, 9:01:51 AM10/9/18
to Interactive Media Ads SDK
Hi Steven 
Thank you very much for your kind consideration.

Raihan Abbas

unread,
Oct 23, 2018, 9:46:25 AM10/23/18
to Interactive Media Ads SDK
Is there any update for this specific issue?

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

unread,
Oct 23, 2018, 3:15:48 PM10/23/18
to ima...@googlegroups.com
Hi Raihan,

Currently, we don't have any updates from the team. We will update you via this thread if we have anything to share.

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

Raihan Abbas

unread,
Feb 22, 2019, 6:20:14 AM2/22/19
to Interactive Media Ads SDK
Hi once again
Is there any update regarding to this issue?

ima-sdk-fo...@google.com

unread,
Feb 22, 2019, 3:07:42 PM2/22/19
to ima...@googlegroups.com
Hello Raihan,

Thanks for following up. There is a s fix in place for this issue and it will go live in the furture SDK release. We don't have any ETA on when this will be live but I will make sure that I will provide an update here on the release as soon as I have any new information from the team.

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

Reply all
Reply to author
Forward
0 new messages