Hi Naomi,

The error indicates that the image asset and video asset resource names are not 
formed correctly. You will need to use the Asset resource as part of the 
resource name. Please find the code snippet below:

AdVideoAsset video = AdVideoAsset.newBuilder()
.setAsset(StringValue.of(ResourceNames.asset(customerId, 6544940770L)))
.build();

AdImageAsset image = AdImageAsset.newBuilder()
.setAsset(StringValue.of(ResourceNames.asset(customerId, 27398859L)))
.build();

AppAdInfo appadinfo = AppAdInfo.newBuilder()
.addDescriptions(text)
.addAllHeadlines(ImmutableList.of(text, text1))
.addAllDescriptions(ImmutableList.of(description))
.addAllImages(ImmutableList.of(image))
.addAllYoutubeVideos(ImmutableList.of(video))
.build();

Please give this a try and let me know if you have any questions.

Thanks,
Bharani, Google Ads API Team
ref:_00D1U1174p._5001UOCaSg:ref

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 
"AdWords API and Google Ads 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/SBVkN000000000000000000000000000000000000000000000Q185WB000sMc-y2nT2ulWkbBIEZXDw%40sfdc.net.

Reply via email to