IMA SDK Sample App : Inconsistent behavior on playing pre-roll ads

135 views
Skip to first unread message

Abhishek Kumar

unread,
Jul 19, 2022, 4:20:12 AM7/19/22
to Interactive Media Ads SDK
Dear IMA Team,

We are working on deploying VAST ads in Live stream. To check the ad functionality of a commercial pre-roll url (Say K) of an Indian content provider, we used IMA sample code.
However it shows unstable behavior.

Reproduction steps:
    1. Open url https://github.com/googleads/googleads-ima-html5
    2. Download "simple" code & open ads.js file
    3. In function setUpIMA(), assign commercial pre-roll url (K) to adsRequest.adTagUrl
    4. Add console.log in methods, save file & run index.html on chrome browser

Expected Result:
    Pre-roll ad should play fine & then video should play.

Actual Result:
    The behavior is inconsistent . Mostly it does not play pre-roll ads before playing video but sometimes it does plays ad (on multiple tries).
    Following are the generic pre-roll failure console logs when we click play button on the screen(Same behavior with IE and edge browsers):
    ads.js: playAds()
    ads.js: playAds() : TRY BLOCK START
    ads.js: playAds() : TRY BLOCK END
    ads.js: onContentResumeRequested() : START
    ads.js: onContentResumeRequested() : END
    ads.js: onAdEvent() adEvent.type =  allAdsCompleted

Problem identified from logs is events of adEvent.type as loaded, start and complete for pre-roll are not called (for the reasons unknown to us). 

We had also tried below scenarios (as per Note 1 & Note 2 below)

Note 1 : Open https://googleads.github.io/googleads-ima-html5/vsi/ =>Select "VAST XML" radio button =>Paste (K) in input field & click "Test Ad" button 
OUTPUT : it plays commercial pre-roll add followed by video play

Note 2 : Open url (K) in web browser => an xml with below format is displayed (Say "SMALL XML")
            <Playlist>
                <Preroll>
                    <Ad>
                        <![CDATA[ ....ANOTHER_URL.... ]]>
                    </Ad>
                </Preroll>
            </Playlist>
         Now open https://googleads.github.io/googleads-ima-html5/vsi/ => Select "VAST XML" radio button => Paste "SMALL XML" in input field (thats is expecting VAST XML) => Click "Test Ad" button 
OUTPUT : it plays commercial pre-roll add followed by video play    

Queries :
    1. As per Note 1, when the commercial url (K) is playing on IMA page, why it doesn't play with sample code ?
    2. As per Note 2, when we open url (K) in browser, it does not give us XML in VAST format (No <Tracking> and <MediaFile> tags present) but when we add this "SMALL XML"  in input field(expecting a VAST XML), why & how does it play pre-roll ads?
    3. Is there any blocking from google side for playing commercial (3rd party) url on sample code? Also do we need any priviledges that are currently missing to play ads consistently?    
   
Please confirm and add let us know if you need anything from our side. 

IMA SDK

unread,
Jul 20, 2022, 1:01:59 AM7/20/22
to abha...@gmail.com, ima...@googlegroups.com

Hello Abhishek,

 

Michael here from IMA SDK Team. Thank you for reaching out to us.

 

Before we can answer your queries, since all of it relates to VAST behavior, we will need first the exact VAST Ad Tag url or the VAST XML you used to replicate the same behavior so we can test on our end. You may also add a screen recording of the behaviors on your end for better illustration of the issue.

 

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=5004Q00002blW0nQAE&entry.80707362=00114566

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 the requested details on this thread, kindly provide it privately via "Reply To Author" button.

Regards,

Google Logo
Michael Angelo
IMA SDK Team
 


ref:_00D1U1174p._5004Q2blW0n:ref
Reply all
Reply to author
Forward
0 new messages