[Android TV]IMA SDK report errorMessage=The response does not contain any valid ads., errorCode=1009, type=adLoadError

79 views
Skip to first unread message

jz z

unread,
Sep 4, 2024, 1:03:21 AMSep 4
to Interactive Media Ads SDK
Hi team
According to the FAQ, when I switch new video, I call adsManager.destroy() and IMA SDK comes up with this error: errorMessage=The response does not contain any valid ads., errorCode= 1009, type=adLoadError.
1725352844234.jpg
Can't we call adsManager.destroy() in switch new video to first delete the previously played ads record and then re-fetch and play the ads? Can we only initialise the IMA SDK every time? please help thanks?
MyActivity.java

IMA SDK

unread,
Sep 4, 2024, 4:05:59 AMSep 4
to 100451...@gmail.com, ima...@googlegroups.com

Hi,

Thank you for contacting the IMA SDK Support team.

The Error code 1009 refers to the VAST response document is empty. The errors are reported when there are no video files or tracking events included in a returned VAST response. Kindly ensure there are no errors with the start or end dates in the order or line item, and all targeted key-values are valid. Also, ensure that the correct ad units are targeted, and the size configured in the line item matches the size of the targeted ad units. For more information, kindly refer to the 1009 VAST error.

This error is not specific to the SDK but rather on ad configuration.

You can call the adsManager.destroy() when switching to a new video to clean up the currently playing ad. At any time, destroy can be called to end ad playback. There is no need to reinitialise the IMA SDK every time. 

Could you check if the second VAST is showing an error too when playing first? or only after destroying is it failing. In case it's failing only after destroy then share both VAST with us including your code snippet.  

This message is in relation to case "ref:!00D1U01174p.!5004Q02vFkPM:ref" (ADR-00266729)

Thanks,
 
Google Logo IMA SDK Team


jz z

unread,
Sep 4, 2024, 5:24:01 AMSep 4
to Interactive Media Ads SDK
Hi, thanks for the reply.
Now I'll provide the demo, this code is rewritten by us based on the basicxample, you can click on the SwitchNewVideo button and then it will report this error
activity_my.xml
MyActivity.java

IMA SDK

unread,
Sep 4, 2024, 12:08:29 PMSep 4
to 100451...@gmail.com, ima...@googlegroups.com

Hi,

We are facing difficulties to reproduces the issue in our Google basic example project. Can you please provide a sample project which replicates the issue to investigate further.

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, kindly provide requested information to us via reply to author option or using the steps below:

1. Navigate to

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

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.

jz z

unread,
Sep 4, 2024, 9:47:17 PMSep 4
to Interactive Media Ads SDK
Hi,team
I have provided two files in my previous comment, you can overwrite MyActivity and activity_my.xml of basicexample, then run the application and click on switch new video button after playing pre-roll, sometimes it may take a few clicks to get this error.

IMA SDK

unread,
Sep 5, 2024, 7:41:27 AMSep 5
to 100451...@gmail.com, ima...@googlegroups.com

Hi,

Thank you for getting back to us.

After executing the basic sample project by replacing files that you have provided, the issue can be replicated when the SwitchNewVideo button is clicked a second time, but not the first time. Having said that, I will raise this as a bug and our engineering team will look into this issue. Once I get an update, I'll keep you posted on the same. I would recommend you follow our Android release notes for the latest updates. 

IMA SDK

unread,
Sep 6, 2024, 7:39:27 PMSep 6
to ima...@googlegroups.com, 100451...@gmail.com

Hi,

I've checked this with the team and found that this is working as expected. Where multiple requests to the same ad tag like the app is doing will result in empty VAST, since Ad Manager won't return the same ad multiple time since this would be a bad user experience.

The ad tag included in the test app looks to be a test ad since it says "VMAP preroll test". You may reach out to the Ad Manager team to configure their production ad tags to have multiple ads that can be returned.

Thanks
 

jz z

unread,
Sep 10, 2024, 12:23:50 AMSep 10
to Interactive Media Ads SDK
So when we switch new video can we call adsManager.destroy() and then call callback.onContentComplete() without having to reinit ima? or do we just need to call one of these two methods?
like this:

1725352844234.jpg

IMA SDK

unread,
Sep 13, 2024, 5:45:19 PMSep 13
to 100451...@gmail.com, ima...@googlegroups.com
Hi,

The adsManager.destroy() function is adequate for loading a new ad request, but as I recommended in a prior discussion, the fundamental cause of this problem is test ads, which may appear blank in rapid succession. You may contact the Ad Manager team to set up production ad tags to contain multiple ads that can be returned.

Reply all
Reply to author
Forward
0 new messages