Hi,
I am trying to create an ad with YouTubeVideoId using google script. First,
I create a youtube video asset:
>> result = AdsApp.adMedia().newVideoBuilder()
.withYouTubeVideoId(youtubeVideoId).build().getResult()
result.isSucessful() is True, result.getErrors() is an empty list,
result.getEntityType() is 'Asset' but result.getType() is UNSPECIFIED
If I try to create the ad:
new_ad =
adGroup.newVideoAd().inStreamAdBuilder().withAdName(ad_name).withVideo(result)
I get:
>> InputError: Invalid input: "{entity: an object}". Expected an Asset
which is a YouTube video
This last error can be explained because the asset has UNSPECIFIED type,
but why the asset has this type?
Thanks
Carlos
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
---
You received this message because you are subscribed to the Google Groups
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/adwords-api/b7f03947-30c4-4bc1-b012-6491b8c996bbn%40googlegroups.com.