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.
- created StructuredSnippetAsset
- created Asset with StructuredSnippetAsset
- created AssetOperation using Asset
- created mutateAssets using AssetOperation
- Getting Resource Name from mutateAssets
- created AdGroupAsset with {$adgroupId, asset, field_type}
- created AdGroupAssetOperation using AdGroupAsset
- 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.