MutateAsset Error

37 views
Skip to first unread message

Banu Chandar

unread,
Jun 17, 2022, 8:32:36 AM6/17/22
to Google Ads API and AdWords API Forum
Hi Team,

I need to create Structured Snippet Extensions using Google Ads API. So I researched Google Ads API and started working on it. 
As per documentation, recommends to create Asset for structured snippet extensions. Below I mentioned the flow in which I'm trying to create a Structured Snippet.

  1. created StructuredSnippetAsset 
  2. created Asset with  StructuredSnippetAsset 
  3. created AssetOperation using Asset
  4. created mutateAssets using AssetOperation
  5. Getting Resource Name from mutateAssets
  6. created  AdGroupAsset with {$adgroupId, asset, field_type}
  7. created  AdGroupAssetOperation using  AdGroupAsset 
  8. And finally trying to mutateAdGroupAssets with AdGroupAssetOperation. But we got an error as mentioned below.
  When I try to mutate the AdGroupAsset operation it throws "RESOURCE_NOT_FOUND". I attached the log file below for your reference.

1. Is the Flow we are trying to create a StructureSnippet the correct way ?
2. If Correct, What were we missing in this request ? Why did we get this error?

Please guide us to resolve this error. We need to do this asap. We have used PHP Google Ads API client library.
example_files_log_info.log

Google Ads API Forum Advisor

unread,
Jun 20, 2022, 4:21:00 AM6/20/22
to ba...@bwcubesmart.com, adwor...@googlegroups.com
Hi Banu,

Thank you for reaching out to the Google Ads API team. I hope that you are doing well today.

Moving forward to your concern. The process of creating a StructureSnippet appears to be correct. To further investigate this your concern, could you provide the complete request and response logs with request ID and request header generated on your end? You can provide it via Reply privately to author option. If this option is not available, then send it instead on this email address googleadsa...@google.com. Furthermore, please enable your logging on PHP for us to get the logs. 

Warm regards,
Google Logo
Sherwin Vincent
Google Ads API Team
 


ref:_00D1U1174p._5004Q2bxOKr:ref
Reply all
Reply to author
Forward
0 new messages