Hi Ben, Thanks for the clear explanation .That really helps!!!!
I haven't been able to add successfully an image asset yet, but at least I know what needs to be done and why the error . Let me try few things out before I get back to you again. Thanks and Regards, Vinutha On Friday, 24 May 2019 22:03:32 UTC+5:30, adsapiforumadvisor wrote: > > Hi Vinuntha! > > Thanks for the question and apologies for the prolonged back and forth. > > The asset field on an AdImageAsset > <https://developers.google.com/google-ads/api/reference/rpc/google.ads.googleads.v1.common#google.ads.googleads.v1.common.AdImageAsset> > > is indeed a StringValue so you're setting it correctly in your code > snippet. However the string itself is not arbitrary, it must be the > resource_name of an existing Asset > <https://developers.google.com/google-ads/api/docs/fields/asset>. Note > the statement in the error message: *Resource name 'Landscape Image' is > malformed: expected 'customers/{customer_id}/assets/{part_1}'."* And > recall that a resource_name is similar to the id of an entity, so you're > specifying an individual Asset entity as one of the marketing images on the > ad. > > You can use the below select statement in search query to find Assets in > your account that meet the criteria for marketing_images in a > responsive_display_ad. If this query does not return any results you'll > need to add images using the AssetService > <https://developers.google.com/google-ads/api/reference/rpc/google.ads.googleads.v1.services#google.ads.googleads.v1.services.AssetService> > . > > Hope that helps! > > Best, > Ben Karl, Google Ads API Team > > SELECT > asset.resource_name, > > asset.image_asset.full_size.height_pixels, > > asset.image_asset.full_size.width_pixels, > > asset.image_asset.mime_type > > FROM asset > > WHERE > > asset.image_asset.mime_type IN (IMAGE_JPEG, IMAGE_PNG, IMAGE_GIF) AND > > asset.image_asset.full_size.height_pixels >= 314 AND > > asset.image_asset.full_size.width_pixels >= 600 > > ref:_00D1U1174p._5001UAqMsW: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 adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com 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 adwords-api+unsubscr...@googlegroups.com. Visit this group at https://groups.google.com/group/adwords-api. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/e086001e-d7a1-44c9-98f6-4c78f28bbc98%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.