Hi,
Thank you for reaching out to the Google Ads API support team.
After reviewing your concern, I can understand that you are encountering errors while publishing a PMax retail campaign through the Google Ads API. The errors that you're having usually occur when the minimum asset requirements are not met. Please do note that each Performance Max campaign requires an initial minimum set of assets. These may be existing assets used in other campaigns or new assets specifically for a Performance Max campaign. I would recommend you to refer to the Assets document to check and review the requirements.
![]() |
Google Ads API Team |
Hi,
Please be informed that I have removed your response from the forums as it contains the PII information.
I understand that you are using the assetGroups method to create the asset groups for PMax campaigns using the Google Ads API. Based on the logs provided, I can see that the order of operations in the mutate request is wrong. I would recommend you to refer to the 'Group operations with mutate requests' for more information on order of operations.
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. You need to make the bulk request using the 'googleAds.mutate' method in the Google Ads API.
You can refer to the sample Java code for your requirement. We have tried this approach and were successfully able to create the assetGroup. However, I have attached the sample request body for your requirement.