Hi Ryo,
Thanks for reaching out to the Google Ads API Forum.
The AuthorizationError.ACTION_NOT_PERMITTED error occurs when the user does not have permission to perform this action (e.g., ADD, UPDATE, REMOVE) on the resource or call a method. You encountered said error because you are using the credentials with adequate access level. You may need to have at least standard access level to upload the enhanced conversion to Google Ads via Google Ads API.
For your question “Where should I get the additional permission? In the Google Ads account, Google Ads account(MCC), OAuth or what...?”, you may refer to the steps shown under "How to edit access level" section of this guide to edit the access level.
In Google Ads API perspective, as an administrator, you can get the list of users with access to an account by building a Google Ads Query Language statement to query all the CustomerUserAccess entities associated with a customer ID. Here is a typical query:
SELECT customer_user_access.user_id, customer_user_access.email_address, customer_user_access.access_role, customer_user_access.access_creation_date_time, customer_user_access.inviter_user_email_address FROM customer_user_access
For more information, you may refer to this page. In addition, you may refer to the sample JSON required to pass in your REST API request:
{
"conversionAdjustments": [
{
"gclidDateTimePair": {
object (GclidDateTimePair)
},
"adjustmentType": enum (ConversionAdjustmentType),
"restatementValue": {
object (RestatementValue)
},
"userIdentifiers": [
{
object (UserIdentifier)
}
],
"orderId": string,
"conversionAction": string,
"adjustmentDateTime": string,
"userAgent": string
}
], "partialFailure": boolean, "validateOnly": boolean}
For more information, you may check this guide.
Regards,
|
||||||