Video Ad creation issue

53 views
Skip to first unread message

Krishnadas D

unread,
Sep 12, 2022, 8:41:29 AM9/12/22
to Google Ads Scripts Forum
Hi 
i am creating video ad suing following coed with new script experience 
var mediaOperation = AdsApp.adAssets().newYouTubeVideoAssetBuilder().withYouTubeVideoId(<VIDEO_ID>).build().getResult();
            if(mediaOperation.getYouTubeVideoId()){
             
              var videoAd = videoAdGroup.newVideoAd().inStreamAdBuilder().withAdName("AD NAME").withFinalUrl("https://url.com").withDisplayUrl("url.com").withActionHeadline("CTA").withCallToAction("Clic").withVideo(mediaOperation);
            }

and i am getting error 


InputError: Invalid input: "{entity: an object}". Expected an Asset which is a YouTube video at Oa.check (adsapp_compiled:403:11) at JA.withVideo (adsapp_compiled:13997:36) at Object.<anonymous> (adsapp_compiled:18977:54)

i referred this document  

can i get some help please ?

Google Ads Scripts Forum Advisor

unread,
Sep 13, 2022, 3:05:56 AM9/13/22
to adwords...@googlegroups.com

Hello,

I’m James from the Google Ads scripts support team. Thank you for reaching out to us.

Could you please provide us with the following information below so that we can check the issue on your end?

  • Google Ads account ID / CID
  • Script name

Regards,

Google Logo
James Howell
Google Ads Scripts Team
 


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