curl --location 'https://googleads.googleapis.com/v17/customers/8702376846/campaigns:mutate' \ --header 'Content-Type: application/json' \ --header 'developer-token: 0-4PjaUzBnyeiqsEkhbpgg' \ --header 'login-customer-id: 8663393180' \ --header 'Authorization: Bearer ya29.a0AcM612xCjZOtwjsrhaqjYq2lI73gOr1_rs9jePJ1Afv5Rc0xXO3s2MS4k5kRsrZVoRmP8qAseUCQSzPcRirt0_FtY0XJi539-cRo3OKppIMDgCCUhPQ4aYleSKgogKG0hly3QzOm1_iLRlX58qZq7iCTE8wTix3LJFxBCetAWAaCgYKAfISARMSFQHGX2MiULy-UeShdSCesMVrLw3yPw0177' \ --data '{ "operations": [ { "create": { "name": "P max-campaign", "status": "ENABLED", "advertisingChannelType": "PERFORMANCE_MAX", "campaignBudget": "customers/8702376846/campaignBudgets/13865234599", "biddingStrategyType": "ENHANCED_CPC", "maximizeConversionValue": { "targetRoas": 0.9 } } } ] }' firstly i created this Pmax campaign and i got the following response : { "results": [ { "resourceName": "customers/8702376846/campaigns/21606899031" } ] } then i wanted to create asset group for this campiagn , so i passed this campiagn id in another mutate operation while creating asset group as shown below : curl --location 'https://googleads.googleapis.com/v17/customers/8702376846/assetGroups:mutate' \ --header 'Content-Type: application/json' \ --header 'developer-token: 0-4PjaUzBnyeiqsEkhbpgg' \ --header 'login-customer-id: 8663393180' \ --header 'Authorization: Bearer ya29.a0AcM612xCjZOtwjsrhaqjYq2lI73gOr1_rs9jePJ1Afv5Rc0xXO3s2MS4k5kRsrZVoRmP8qAseUCQSzPcRirt0_FtY0XJi539-cRo3OKppIMDgCCUhPQ4aYleSKgogKG0hly3QzOm1_iLRlX58qZq7iCTE8wTix3LJFxBCetAWAaCgYKAfISARMSFQHGX2MiULy-UeShdSCesMVrLw3yPw0177' \ --data '{ "operations": [ { "create": { "resourceName": "customers/8702376846/assetGroups/-1", "campaign": "customers/8702376846/campaigns/21606899031", "name": "latest-pm-asset-group", "finalUrls": [ "https://google.com" ], "finalMobileUrls": [ "https://your-mobile-landing-page.com" ], "status": "PAUSED" } } ] }' and now i am getting following error : { "error": { "code": 400, "message": "Request contains an invalid argument.", "status": "INVALID_ARGUMENT", "details": [ { "@type": "type.googleapis.com/google.ads.googleads.v17.errors.GoogleAdsFailure", "errors": [ { "errorCode": { "assetGroupError": "NOT_ENOUGH_HEADLINE_ASSET" }, "message": "Headline asset for a valid asset group is not enough.", "trigger": { "stringValue": "Asset type: headline" }, "location": { "fieldPathElements": [ { "fieldName": "operations", "index": 0 } ] } }, { "errorCode": { "assetGroupError": "NOT_ENOUGH_LONG_HEADLINE_ASSET" }, "message": "Long headline asset for a valid asset group is not enough.", "trigger": { "stringValue": "Asset type: long headline" }, "location": { "fieldPathElements": [ { "fieldName": "operations", "index": 0 } ] } }, { "errorCode": { "assetGroupError": "NOT_ENOUGH_DESCRIPTION_ASSET" }, "message": "Description headline asset for a valid asset group is not enough.", "trigger": { "stringValue": "Asset type: description" }, "location": { "fieldPathElements": [ { "fieldName": "operations", "index": 0 } ] } }, { "errorCode": { "assetGroupError": "NOT_ENOUGH_MARKETING_IMAGE_ASSET" }, "message": "Marketing image asset for a valid asset group is not enough.", "trigger": { "stringValue": "Asset type: marketing image" }, "location": { "fieldPathElements": [ { "fieldName": "operations", "index": 0 } ] } }, { "errorCode": { "assetGroupError": "NOT_ENOUGH_SQUARE_MARKETING_IMAGE_ASSET" }, "message": "Square marketing image asset for a valid asset group is not enough.", "trigger": { "stringValue": "Asset type: square marketing image" }, "location": { "fieldPathElements": [ { "fieldName": "operations", "index": 0 } ] } }, { "errorCode": { "assetGroupError": "NOT_ENOUGH_BUSINESS_NAME_ASSET" }, "message": "Business name asset for a valid asset group is not enough.", "trigger": { "stringValue": "Asset type: business name" }, "location": { "fieldPathElements": [ { "fieldName": "operations", "index": 0 } ] } }, { "errorCode": { "assetGroupError": "NOT_ENOUGH_LOGO_ASSET" }, "message": "Logo asset for a valid asset group is not enough.", "trigger": { "stringValue": "Asset type: logo" }, "location": { "fieldPathElements": [ { "fieldName": "operations", "index": 0 } ] } }, { "errorCode": { "assetGroupError": "SHORT_DESCRIPTION_REQUIRED" }, "message": "Short description asset for a valid asset group is required.", "trigger": { "stringValue": "Asset type: description" }, "location": { "fieldPathElements": [ { "fieldName": "operations", "index": 0 } ] } } ], "requestId": "NFHzjKtWPVTSZyFg0V3Fkw" } ] } } i am following all the steps as you told but still getting the same error again.
-- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 on the web visit https://groups.google.com/d/msgid/adwords-api/ae24ec3b-4e14-4e03-b04c-8cbe573f388fn%40googlegroups.com.