Hi Vinuntha!

Thanks for the question and apologies for the prolonged back and forth.

The asset field on an 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. 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.

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/xlXSa000000000000000000000000000000000000000000000PS0ONJ00sYCP5YrRQwG9i5tsJSwvOQ%40sfdc.net.
For more options, visit https://groups.google.com/d/optout.

Reply via email to