I am trying to make a request to the Google Ads API using the REST APIs and not the SDKs, but I am getting an invalid argument response.
{
operations: [
{
updateMask: "amount_micros",
update:{
resourceName: "customers/{AccountNumber}/campaignBudgets/{BudgetID}",
amount_micros: "60000000"
}
}
]
}
I am not sure if the response below is telling me the BudgetID I am sending can't be found or something else. I am retrieving the BudgetID in a prior call using the
campaign_budget.id field:
{
"error": {
"code": 400,
"message": "Request contains an invalid argument.",
"status": "INVALID_ARGUMENT",
"details": [
{
"@type": "
type.googleapis.com/google.ads.googleads.v10.errors.GoogleAdsFailure",
"errors": [
{
"errorCode": {
"mutateError": "RESOURCE_NOT_FOUND"
},
"message": "Resource was not found.",
"trigger": {
"int64Value": "{
BudgetID}"
},
"location": {
"fieldPathElements": [
{
"fieldName": "operations",
"index": 0
},
{
"fieldName": "update"
},
{
"fieldName": "resource_name"
}
]
}
}
],
"requestId": "7Fc0P_Mbl9N842_xbI-A2A"
}
]
}
}
Thanks in advance for any information you might be able to provide.