You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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)