Hi everyone,
I had to delete all your initial posts as it appears to have contained
sensitive information in the logs of the initial poster. I am now re-posting
the redacted details of the initial post below for reference :
"Hello, i am trying to create a new campaign and budget but i get the following
errors all the time Unauthorized CREATE operation in invoking a service's
mutate method
My code in (Nodejs):
const client = new GoogleAdsApi({
client_id: 'XXXXXXXXXXXXXXXXXXXX',
client_secret: '***************************',
developer_token: '****************************'
})
const customer = client.Customer({
customer_account_id: '371-114-1084',
refresh_token: '1//03*************************************
})
try {
const response = await customer.mutateResources([
// Create new budget
{
_resource: 'CampaignBudget',
_operation: 'create',
resource_name: 'customers/3711141084/campaignBudgets/-1',
name: 'My all new budget',
amount_micros: 3000000,
explicitly_shared: true
}
]);
console.log(response);
} catch (err) {
console.log(err)
}
});
The response:
request_id: 'XXXXXXXXXX',
location: 'mutate_operations[0].campaign_budget_operation',
policy_violation_details: undefined,
failure: Error: 3 INVALID_ARGUMENT: Unauthorized CREATE operation in invoking a
service's mutate method."
Moving forward, could you both provide the complete request and response logs,
with the request-id, separately? If you haven't yet, logging can be enabled by
navigating to the Client libraries > Your client library (ex. Java) > Logging
documentation, which you can access from this link.
You may then send the requested information via the Reply privately to author
option. If this option is not available, you may send the details directly to
our [email protected] alias instead.
Best regards,
Peter Laurence Napa Oliquino
Google Ads API Team
ref:_00D1U1174p._5004Q2IxP34:ref
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
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
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/adwords-api/I9KgO000000000000000000000000000000000000000000000QV74K400LhhW8DWDTJqdmBE1lHe6PQ%40sfdc.net.