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:
'1004921226288-vu85lph7lcjm2g11ncb0o4chuuir01cj.apps.googleusercontent.com',
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: 'MdY5RUivI7vUaKUccZBhsw',
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.
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/b727c285-9f03-461f-9b05-9474fb939c9fn%40googlegroups.com.