Hello.

I am working on REST API client for Google Ads using REST interface.
I am trying to mutate existing campaign (set status) but receive 
only RESOURCE_NOT_FOUND error. But, resource exists.
Could you please help me to find out an error?
I am using POST request type for this url:
https://googleads.googleapis.com/v12/customers/{my_customer_id}/campaigns:mutate

JSON body of request:
{
"operations":
[
{
"updateMask":"status",
"update":
{
"resourceName":"customers/{my_customer_id}/campaigns/{my_camp_id}",
"status":"ENABLED"
}
}
]
}

And receive next error:
{
"error": {
"code": 400,
"message": "Request contains an invalid argument.",
"status": "INVALID_ARGUMENT",
"details": [
{
"@type": 
"type.googleapis.com/google.ads.googleads.v12.errors.GoogleAdsFailure",
"errors": [
{
"errorCode": {
"mutateError": "RESOURCE_NOT_FOUND"
},
"message": "Resource was not found.",
"trigger": {
"stringValue": "CampaignId: {my_camp_id}"
},
"location": {
"fieldPathElements": [
{
"fieldName": "operations",
"index": 0
},
{
"fieldName": "update"
},
{
"fieldName": "resource_name"
}
]
}
}
],
"requestId": "0dt678xoXk2_cbqyD0EfUQ"
}
]
}
}

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/9cd0d478-76c5-4634-9ab0-06c32ff40be8n%40googlegroups.com.
  • RE... Kostiantyn Babych
    • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum

Reply via email to