Thanks for your response. The particular type of campaign that I am unable to create is - "Performance Max Campaign" Here is the request I am trying curl --location 'https://googleads.googleapis.com/v17/customers/4926841893/campaigns:mutate' \ --header 'developer-token: hN6dsqjNmj3tWdITcPd_Qg' \ --header 'login-customer-id: 3263459376' \ --header 'Content-Type: application/json' \ --header 'Authorization: Bearer ya29.a0AXooCgtMIpcIeRjl2Bm544l7KM6R_7gin4V4AhTuIhjH-ZtBovo-JD17RCfjth6PWd3qgtW5llr0ycjuvjL_ENFjGtSH9pacdY5vIKj4WmsUufeEw9kBdj8tsKtCpw-G6nvSxzbuE9FxYH7LwyohDeSuuxWJCHUX_ZU9aCgYKAV4SARMSFQHGX2MinpYLgJAs6edb9IJAnh5Y1Q0171' \ --data '{ "operations": [ { "create": { "name": "A performance max campaign 1", "status": "PAUSED", "campaignBudget": "customers/4926841893/campaignBudgets/13770369729", "advertisingChannelType": "PERFORMANCE_MAX", "target_spend": {} } } ] }'
and here is the response { "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": { "contextError": "OPERATION_NOT_PERMITTED_FOR_CONTEXT" }, "message": "The operation is not allowed for the given context.", "location": { "fieldPathElements": [ { "fieldName": "operations", "index": 0 }, { "fieldName": "create" }, { "fieldName": "target_spend" } ] } }, { "errorCode": { "campaignError": "INCOMPATIBLE_BUDGET_TYPE" }, "message": "The type of the budget is not compatible with this campaign.", "trigger": { "int64Value": "13770369729" }, "location": { "fieldPathElements": [ { "fieldName": "operations", "index": 0 }, { "fieldName": "create" }, { "fieldName": "campaign_budget" } ] } }, { "errorCode": { "campaignError": "NOT_COMPATIBLE_WITH_BUDGET_TYPE" }, "message": "The field is not compatible with the budget type.", "trigger": { "int64Value": "13770369729" }, "location": { "fieldPathElements": [ { "fieldName": "operations", "index": 0 }, { "fieldName": "create" }, { "fieldName": "campaign_budget" } ] } } ], "requestId": "IneV2A0Pw3SWDgbquPoEPw" } ] } } On Monday, July 29, 2024 at 9:43:14 PM UTC+5:30 Google Ads API Forum Advisor wrote: > Hi, > > Thank you for reaching out to the Google Ads API support team. > > Based on the information provided, I understand that you would like to > create campaigns for your Google Ads account. I would suggest referring to > this document > <https://developers.google.com/google-ads/api/rest/reference/rest/v17/customers.campaigns/mutate> > to > create campaigns using the REST interface through the Google Ads API. > > > > *This message is in relation to case "ref:!00D1U01174p.!5004Q02vEHGt:ref" > (ADR-00259937) Thanks,* > > [image: Google Logo] *Google Ads API Team* > *Register > <https://adsonair.withgoogle.com/events/performance-max-api-workshop> for > the upcoming workshop: Performance Max and the Google Ads API!* > > > > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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/cc9f4e4b-0480-46a9-a3aa-ac674485d7d3n%40googlegroups.com.