IMA Sdk got error while using custom Vast AdTag

24 views
Skip to first unread message

Kanika Tandel

unread,
May 24, 2023, 6:36:26 AM5/24/23
to Interactive Media Ads SDK
Hello 


    IMA sdk support custom Video ads or not in android kotlin? I check  with  this document https://developers.google.com/interactive-media-ads/docs/sdks/android/client-side/custom_ad_playback. based on that it supported but i tried this AdvancedExample from this repo  https://github.com/googleads/googleads-ima-android-dai   ,its not working with Custom Vast Ads.and got error Access to XMLHttpRequest at 'https://full-radio.onecmsdev.com/wp-content/plugins/wpb-video/public/get_vast.php?playlistid=21&sID=1149&sURL=https%3A%2F%2Ffull-radio.onecmsdev.com' from origin 'https://imasdk.googleapis.com' has been blocked by CORS policy: The 'Access-Control-Allow-Origin' header has a value 'http://imasdk.googleapis.com' that is not equal to the supplied origin.", source: https://imasdk.googleapis.com/native/sdkloader/native_sdk_v3.html?sdk_version=a.3.29.0&hl=en-in&omv=1.3.37-google_20220829&app=itm.wpb1750.fullradio&mt=4 (0)Please Suggest me what i need to do .

IMA SDK

unread,
May 26, 2023, 3:30:56 AM5/26/23
to ima...@googlegroups.com

Hi,

Thank you for raising your concern to the IMA SDK forum.

The IMA SDK is compatible with Kotlin. However, the example covered in our guide and sample uses Java, more information here:https://developers.google.com/interactive-media-ads/docs/sdks/android/client-side#1.-create-a-new-android-studio-project

Moving forward to the error you encountered, kindly try to run the ad tag on our VIS tool: https://developers.google.com/interactive-media-ads/docs/sdks/html5/vastinspector and observe if you receive the same error. If yes, then the issue is not with the SDK and I recommend reaching out to your ad provider for further assistance.

If the issue is not encountered when testing via VSI, kindly provide us with the following information:

  • Ad tag
  • Modified sample app where issue is reproducible

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=5004Q00002lsmd7QAA&entry.80707362=00180733
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.

Looking forward to your response. 

This message is in relation to case "ref:_00D1U1174p._5004Q2lsmd7:ref"

Thanks,
 
Google Logo IMA SDK Team


Reply all
Reply to author
Forward
0 new messages