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"
}
]