Hi,
Thank you for contacting the Google Ads API support team.
Regarding the error "asset_group_error" while making the request to MutateAssetGroups, kindly note that the AssetGroup within a Performance Max campaign necessitates an initial minimum requirments of assets. These assets may comprise pre-existing ones utilized in other campaigns or newly created assets specifically for an AssetGroup within a Performance Max campaign. These errors might occur when asset requirements are not met. Kindly follow this guide to ensure minimum asset requirements are met.
Also, you can refer to this code snippet to see how programmatically you can create the asset groups as well as how to link the asset group to assets.
I hope it helps.
![]() |
Google Ads API Team |