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.


Thanks,

Google Ads API Team


Feedback
How was our support today?


[2025-02-18 06:41:32Z GMT] This message is in relation to case 
"ref:!00D1U01174p.!5004Q02vH2KH:ref" (ADR-00288638)

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion visit 
https://groups.google.com/d/msgid/adwords-api/OVAtw000000000000000000000000000000000000000000000SRV99900f2xkQ4IpTsiiMgLaKgbL3w%40sfdc.net.
  • Un... Shahil Verma
    • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
      • ... Shahil Verma

Reply via email to