ACTION_NOT_PERMITTED for Upload Click Conversion

776 views
Skip to first unread message

Qi Wang

unread,
Jan 27, 2021, 3:27:53 AM1/27/21
to AdWords API and Google Ads API Forum
We are trying to upload conversion with google ads API. But we will get ACTION_NOT_PERMITTED error.
We confirmed our developer token, seems no issues for the token.
So we are not sure why we get this error. Can someone how to resolve this issue?

<API Document>

<API>
com.google.ads.googleads.v6.services.ConversionUploadServiceClient.uploadClickConversions(UploadClickConversionsRequest request)

Request
-------
MethodName: google.ads.googleads.v6.services.ConversionUploadService/UploadClickConversions
Headers: {developer-token=REDACTED, x-goog-api-client=gl-java/1.8.0_211 gapic/ gax/1.60.0 grpc/1.33.0}
Body: customer_id: "2494689888"
conversions {
  gclid: "Cj0KCQiA0rSABhDlARIsAJtjfCekq6ddyWF_80iDTqwCm7k2YwYdzMPS4YAgPaC9Uh1vM8hhzqiaru4aAuoWEALw_wcB"
  conversion_action: "customers/2494689888/conversionActions/504979107"
  conversion_date_time: "2021-01-21 10:15:10-09:00"
  conversion_value: 10.0
  currency_code: "JPY"
}
partial_failure: true


Response
--------
Headers: Metadata(content-type=application/grpc,request-id=J6f5A3r_SJ-SguIPoqYNBA,date=Wed, 27 Jan 2021 08:17:09 GMT,alt-svc=h3-29=":443"; ma=2592000,h3-T051=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43")
Body: null
Failure message: errors {
  error_code {
    authorization_error: ACTION_NOT_PERMITTED
  }
  message: "The user does not have permission to perform this action on the resource or call a method."
}

Status: Status{code=PERMISSION_DENIED, description=The caller does not have permission, cause=null}.

Google Ads API Forum Advisor Prod

unread,
Jan 27, 2021, 4:57:45 PM1/27/21
to qi.b...@rakuten.com, adwor...@googlegroups.com

Hi Qi,

Thank you for reaching out. Could you confirm that with the same OAuth2 credentials you are able to make other API calls such as create a campaign or ad?

Thanks and regards,
Xiaoming, Google Ads API Team
 

Google Logo
Xiaoming
Google Ads API Team
 


ref:_00D1U1174p._5004Q2B3izV:ref

Qi Wang

unread,
Jan 27, 2021, 7:36:31 PM1/27/21
to AdWords API and Google Ads API Forum
Get Campaigns is working fine. 
I can not try creating campaign as of now.
I have to discuss with my team if we can create a test campaign as this is a production account.

Qi Wang

unread,
Jan 28, 2021, 12:43:58 AM1/28/21
to AdWords API and Google Ads API Forum
Sorry, can you analyze it base on my request/response message?

SHUICHIRO KUBO

unread,
Jan 28, 2021, 5:20:47 AM1/28/21
to AdWords API and Google Ads API Forum
Hi Xiaoming, 
I'm Ichiro , same team as well as  Qi 
We  could success  call get-campaign API. so developer token is active .
So do we need to get any authority from google ads UI settings ?  or is this any our technical mistake or issue for call API method?
 
also , let me share the our situation .
we already  use customer match api using same developer token. ( # but mcc account , custom login user is different . we have so many account under one top MCC  )
This customer match api can call api and success.

Thanks .
Ichiro

2021年1月28日木曜日 6:57:45 UTC+9 adsapiforumadvisor:

Google Ads API Forum Advisor Prod

unread,
Jan 28, 2021, 3:02:33 PM1/28/21
to shuichi...@rakuten.com, adwor...@googlegroups.com

Hi Qi and Ichiro,

Thank you for reaching out. There are a few possibilities.  One is that your developer token is only allowed to retrieve data rather than mutate. Please check if the develop token you use has the permissible use of get and mutate functionalities. One other possibility is that the OAuth2 credentials stopped working. Give it a try to regenerate the OAuth2 credentials by following the instructions in this guide. Please also make sure the conversion tracking is correctly set up and  enable auto-tagging by updating the auto_tagging_enabled attribute of Customer.



Thanks and regards,
Xiaoming, Google Ads API Team
 

Qi Wang

unread,
Jan 29, 2021, 2:49:34 AM1/29/21
to AdWords API and Google Ads API Forum

Finally we found the issue, it is because of the refresh we created doesn't have permission to upload conversion data to the customer.
So the refresh token generate by the user who have the permission to upload conversion to this customer is working fine.
Thank you very much!
Reply all
Reply to author
Forward
0 new messages