curl --location 
'https://googleads.googleapis.com/v17/customers/8702376.../campaignBudgets:mutate'
 
\
--header 'Content-Type: application/json' \
--header 'developer-token: 0-4PjaUzBnyeiqsEkhb...' \
--header 'login-customer-id: 8663393...' \
--header 'Authorization: Bearer 
ya29.a0AcM612xZSfzNcUTY86n5rb-Hugs130TRGNFCN3i6fxRNn7mHE9gV4n7B7SB420oPjOoRnEdORjfC-JZViWCtLufWbMIiOVxNn5hM38fSkVJruvV2W9i1VoB0ZRsYST7P68eKpd3oB-NsEROt68yy4JGwLbUL2enSgfwXT_YOjhIaCgYKARgSARMSFQHGX2MiqoSwYep3chPnrbd7I5XYVA0...'
 
\
--data '{
  "operations": [

    {

      "updateMask": "amount_micros,status,name",

      "update": {
        "name":"updated budget",
        "resourceName": "customers/8702376.../campaignBudgets/13888957...",
        "amount_micros": 34000000,
        "status" : "ENABLED"
      }

    }

  ]

}'

this is the curl, that i used to update the campaign budget status and 
amount_micros field, but when i tried to udpate its name ,i got error. 
below is the error i got :

{
"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": {
"campaignBudgetError": 
"CANNOT_MODIFY_FIELD_OF_IMPLICITLY_SHARED_CAMPAIGN_BUDGET"
},
"message": "This field is not mutable on implicitly shared campaign 
budgets.",
"location": {
"fieldPathElements": [
{
"fieldName": "operations",
"index": 0
},
{
"fieldName": "update"
},
{
"fieldName": "name"
}
]
}
}
],
"requestId": "cIeaArGngcOxn3hEOL1QSA"
}
]
}
}

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/ee1e01a4-6fbf-4921-a2b4-aae517b91e32n%40googlegroups.com.

Reply via email to