ACTION_NOT_PERMITTED upload click conversion

667 views
Skip to first unread message

Maria Alejandra Luna Tito

unread,
Nov 2, 2022, 1:02:21 PM11/2/22
to Google Ads API and AdWords API Forum
I have an error when uploading upload click conversion, they recently approved the development token with permissions for click conversion, I cannot understand what is the reason for the error and to which user they refer that they do not have permissions.

I am using the following library for NodeJS google-ads-api

CODE

const clickConversion = {
user_identifiers: [{
hashed_email: "f70178b241feaa944ffed4a40746019037362ad034c5b3d0db1a8a660626c514"
}],
conversion_action: `customers/${customer_id}/conversionActions/504979107`,
conversion_date_time: (new Date()).toString(),
partial_failure: true
};

const request = new services.UploadClickConversionsRequest({
customer_id,
conversions: [clickConversion],
partial_failure: true
});

await customer.conversionUploads.uploadClickConversions(request)

ERROR MESSAGE

GoogleAdsFailure {
  errors: [
    GoogleAdsError {
      error_code: [ErrorCode],
      message: 'The user does not have permission to perform this action on the resource or call a method.'
    }
  ],
  request_id: 'MYc1hSgbK5reIxOZa40eFw'
}
---
{
"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."
}
],
"request_id": "MYc1hSgbK5reIxOZa40eFw"
}




Maria Alejandra Luna Tito

unread,
Nov 2, 2022, 1:40:24 PM11/2/22
to Google Ads API and AdWords API Forum
Hello Team, excuse me, is there any doubt with my request? I would appreciate knowing if I missed putting something in my query.

Thank you very much.

Google Ads API Forum Advisor

unread,
Nov 2, 2022, 3:55:33 PM11/2/22
to mlun...@gmail.com, adwor...@googlegroups.com
Hi Maria,

Thank you for reaching out.

Moving forward to your concern. The ACTION_NOT_PERMITTED  is an error message which is related to the Authorization process.Could you also confirm if the said user / email address you used to generate the OAuth2 credentials has at least the standard access as mentioned in this article? I asked because the said user would need that user access level, in order for their credentials to authenticate and authorize mutate actions to your Google Ads account's entities.

That said, user access can then be managed via the API by referring to this guide, or, you may refer to this other article instead.

Thanks,
Google Logo
Nirmita
Google Ads API Team
 


ref:_00D1U1174p._5004Q2fzPFL:ref

Maria Alejandra Luna Tito

unread,
Nov 2, 2022, 5:32:25 PM11/2/22
to Google Ads API and AdWords API Forum
Hello team,

Perfect, thank you very much I was able to generate the correct refresh token with the mail manager.

Now I am having the following problem, could you give me some help on how to solve it

{
  results: [ { user_identifiers: [], gbraid: '', wbraid: '' } ],
  partial_failure_error: {
    details: [ [Object] ],
    code: 3,
    message: 'No click was found for the provided user identifiers. This may be because the conversion did not come from a Google Ads campaign., at conversions[0].user_identifiers'
  }
}

I am sending the client's email or what should it be?
user_identifiers: [{
                 hashed_email: "f70178b241feaa944ffed4a40746019037362ad034c5b3d0db1a8a660626c514"
           }],

Thank you very much,
Maria.

Google Ads API Forum Advisor

unread,
Nov 2, 2022, 10:44:00 PM11/2/22
to mlun...@gmail.com, adwor...@googlegroups.com
Hi Maria,

Thank you for the reply.

Based on our documentation, it’s connected to ConversionUploadError.

Since you have encountered the CLICK_NOT_FOUND error, it means that no click was found for the provided user identifiers that could be applied to the specified conversion action.

For additional verification steps on your end, the following information will help you to do this:
  • Verify the GCLIDs to be uploaded via the click_view report.
  • Verify using the conversion_action report to make sure that the conversion actions belong to the account where they are being.

If the issue still persists even though a click was found, then you may provide us with the complete API logs (request and response with request-id) generated on your end so that our team can further check and validate why you are encountering this error.

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 googleadsa...@google.com alias instead.

Best regards,
Google Logo
Heidi
Google Ads API Team
 


ref:_00D1U1174p._5004Q2fzPFL:ref

Maria Alejandra Luna Tito

unread,
Nov 3, 2022, 8:18:23 AM11/3/22
to Google Ads API and AdWords API Forum
Hello,
Thanks for your answer.

According to this documentation (attach image) what I want to send is not the gclid, I want to send the hashed_phone_number.
I would like to understand how to make the phone valid for a click conversion?
And I would like to know if it is possible not to send the gclid only the phone?

Code

const clickConversion = {
// gclid: "19123897",
user_identifiers: [{
hashed_phone_number: "DCE4F4ADE88C86B69E4F8474CEF0382A4A4B4FD3BDDB5A78CEFC2408FDEEA175",
}],
conversion_action: `customers/${customer_id}/conversionActions/504979107`,
conversion_date_time: "2022-11-02 16:19:23-05:00", //formatDate(new Date()),
partial_failure: true
};

const request = new services.UploadClickConversionsRequest({
customer_id,
conversions: [clickConversion],
partial_failure: true
});

const resp = await customer.conversionUploads.uploadClickConversions(request)

Error
{
  results: [ { user_identifiers: [], gbraid: '', wbraid: '' } ],
  partial_failure_error: {
    details: [ [Object] ],
    code: 3,
    message: 'No click was found for the provided user identifiers. This may be because the conversion did not come from a Google Ads campaign., at conversions[0].user_identifiers'
  }

Grateful for your support,
María.
Captura de Pantalla 2022-11-03 a la(s) 07.04.19.png

Google Ads API Forum Advisor

unread,
Nov 3, 2022, 11:05:11 AM11/3/22
to mlun...@gmail.com, adwor...@googlegroups.com
Hi Maria,

Thank you for reaching out to the Google Ads API support team.

I would like to understand how to make the phone valid for a click conversion?  You may need to use user_identifiers which contain between one and five identifiers. While using user_identifiers phone numbers must be hashed using the SHA-256 algorithm before being uploaded. In order to standardize the hash results, prior to hashing one of these values you must:
  • Remove leading/trailing whitespaces.
  • Convert the text to lowercase.
  • Format phone numbers according to the E164 standard.
And I would like to know if it is possible not to send the gclid only the phone? Instead of setting gclid, populate the user_identifiers with the standardized and hashed email address or phone number of the user. You may note that before using enhanced conversions in Google Ads API, you would need to have a ConversionAction with a type of WEBPAGE and enhanced conversions enabled, and this section of setup to be completed. 

Node js library is not supported in the Google Ad API. Please see here client library.

Let me know if you have any questions.

Thanks,
Google Logo
Nirmita
Google Ads API Team
 


ref:_00D1U1174p._5004Q2fzPFL:ref

Maria Alejandra Luna Tito

unread,
Nov 4, 2022, 8:31:39 AM11/4/22
to Google Ads API and AdWords API Forum
Hello.
Thanks for your help,

What could be the reason for this error?


{
  results: [ { user_identifiers: [], gbraid: '', wbraid: '' } ],
  partial_failure_error: {
    details: [ [Object] ],
    code: 3,
    message: 'No click was found for the provided user identifiers. This may be because the conversion did not come from a Google Ads campaign., at conversions[0].user_identifiers'
  }
}

Grateful for your support,
María.

Google Ads API Forum Advisor

unread,
Nov 4, 2022, 10:34:26 AM11/4/22
to mlun...@gmail.com, adwor...@googlegroups.com
Hi Maria,

Thank you for the reply. I am also a member of the Google Ads API team and let me provide support to your concern.

The "No click was found for the provided user identifiers. This may be because the conversion did not come from a Google Ads campaign." issue you encountered could be due to details not recognized in the validation process in the backend. In the API's perspective, what we can recommend is to ensure that the setup is completed, and that the formatting and hashing was performed as recommended.

That said, could you also provide more details such as how and where you are currently collecting the information you are including in your Google Ads API enhanced conversions for leads uploads? Also, could you provide also the complete request and response logs with request ID and request header generated on your end where we can see the error?

You can provide it via Reply privately to author option. If this option is not available, then send it instead on this email address googleadsa...@google.com.

Regards,
Google Logo
Ernie John
Google Ads API Team
 


ref:_00D1U1174p._5004Q2fzPFL:ref
Reply all
Reply to author
Forward
0 new messages