I'm encountering an issue while attaching an asset (such as Sitelink, Call, or Callout extensions) to an asset group. In the request below, I first create an asset group and then attach various assets, including Text assets, Image assets, and YouTube Video assets, linking them to the created asset group. Could you guide me on how to attach an existing Sitelink asset to the asset group using the API?
Here is request -Additionally, is there a way to update the Final URL and Business Name of an existing asset group?
Thanks in advance.
Hi,
Thank you for reaching out to the Google Ads API support team.
By reviewing your query, I understand that you are encountering "The error code is not in this version" error when trying to attach an asset to an asset group for the PMax campaign. The error might occur when asset requirements are not met. I would recommend you to kindly follow the "Asset Requirements" documentation while attaching assets to an asset group. Please note that the Performance Max campaigns are composed of multiple resources, and you have the option to create these separate resources in unique requests or in a single bulk mutate request. However, AssetGroups and associated AssetGroupAssets in standard Performance Max campaigns must be created in a single atomic request. Assets can be created individually and need to be attached with the asset IDs directly or you need to create the assets using the assetOperation.
I would suggest you create the AssetGroupOperation with some temporary negative ID and then create the assets by using the assetoperation by giving the asset ID as some temporary unique IDs. Kindly note that for a single job or mutate request, each temporary resource name must use a unique negative number, even if they are from different resource types. If a temporary ID is reused in a single job or mutate request, then an error is returned. And then attach all these assets to the asset group with AssetGroupAssetOperation. Please note that all operations can be performed in customers.googleAds.mutate method in the Google Ads API. You can refer to the sample code for your requirement. Also, I would recommend you to refer to the 'Group operations with mutate requests' for more information. Additionally I would recommend you to go through this temporary IDs documentation as it explains how to use the temporary IDs.
Also, I would suggest you kindly refer to the "Link asset groups to assets in Performance Max retail campaigns" documentation as it explains how to add asset groups to assets.
I hope this helps! If you have any questions, please feel free to contact us.![]() |
Google Ads API Team |
[2025-02-18 06:41:32Z GMT] This message is in relation to case "ref:!00D1U01174p.!5004Q02vH2KH:ref" (ADR-00288638)
The above error message shows that the issue is with the "Sitelink" value. I only face this problem when adding an existing sitelink asset extension to an asset group. Otherwise, asset group creation works fine using the same query without sitelink assets. The issue happens only when attaching asset extensions like sitelink, callout, call, and others. Can you help me understand the cause of this error?
It would be really helpful if you could guide me on this. I don’t think the issue is related to asset requirements because, as you can see in my request, I am sending all the necessary details for the asset group.
Additionally, I would appreciate it if you could explain how to edit asset extensions (like sitelink, callout, call, etc.) in an asset group. Specifically, if an asset group already has an attached sitelink and I want to add another sitelink, how can I do that? Also, how can I remove an existing asset extension from the asset group?
And one more thing I am firstslty created each assets and then attaching all the assets to the asset group after creation of asset group so I don't think so asset group creation give this type of error.
Thanks in advance!
![]() |
Google Ads API Team |
[2025-02-18 21:18:23Z GMT] This message is in relation to case "ref:!00D1U01174p.!5004Q02vH2KH:ref" (ADR-00288638)