Enhanced Conversions For Leads not working

258 views
Skip to first unread message

Victor Valar

unread,
Jul 27, 2023, 2:03:06 PM7/27/23
to Google Ads API and AdWords API Forum
Hello  Google support team,

I'm, implementing enhanced conversions for leads wiht the Python SDK and I've been following this documentation:
My implementation so far:
[... some code...]
# User Identifiers
user_identifier = client.get_type("UserIdentifier")
user_identifier.user_identifier_source = (
client.enums.UserIdentifierSourceEnum.FIRST_PARTY
)
## Email
user_identifier.hashed_email = normalize_and_hash_email_address(
utils.get_PIIs(deal)[0][0]
)
## Phone
user_identifier.hashed_phone_number = normalize_and_hash(
utils.phone_parser(
utils.get_PIIs(deal)[1][0]
)
)

# Append identifiers
click_conversion.user_identifiers.append(user_identifier)

# Uploads the click conversion.
conversion_upload_service = client.get_service("ConversionUploadService")
request = client.get_type("UploadClickConversionsRequest")
request.debug_enabled = True
request.customer_id = customer_id
request.conversions = [click_conversion]
request.partial_failure = True

conversion_upload_response = (
conversion_upload_service.upload_click_conversions(
request=request,
)
)
[...more code...]

Inspecting the UserIdentifier object on the debbuger I noticed that only the phone number is getting appended.
append.png
I've also noticed that this object contains an address_info but if I try to:
## Address
user_identifier.address_info.hashed_first_name = normalize_and_hash(
utils.get_PIIs(deal)[2][0]
)

user_identifier.address_info.hashed_last_name = normalize_and_hash(
utils.get_PIIs(deal)[2][-1]
)

user_identifier.address_info.country_code = "BR"

I get an error sating "The provided user identifiers are not supported. Use only hashed email or phone number and try again."

Questions:
1. Can you confirm that the address info is not supported for enhanced conversions?
2. The error message says that I should "Use only hashed email OR phone", does this mean that I can use either email or phone? Could this be the cause why the email is not appended in the first version (the one that I don't send the address info)? Or should I append the user_identifier after the email and after the phone? I've checked the SDKs github example code but the only example I found only sent email not email and phone.
3. We were already uploading click conversions using GCLID only so we've been storing GCLID for quite a while. I've tried uploading conversiosn using only the idenfiers to test it and I'm sure the emails and phones I used were from customers that came from a Google Ads campaign because we had the GCLID, I even filtered the customers that used a @gmail account just to be sure, however, everytime I tried I got the following error message: 
code: 3
 message: "The click can\'t be found for the specified identifiers. This may be because it did not come from a Google Ads campaign.

Thank you, 
Victor

Google Ads API Forum Advisor

unread,
Jul 27, 2023, 5:41:32 PM7/27/23
to va...@victorvalar.me, adwor...@googlegroups.com

Hi Victor,

Thanks for reaching out to the Google Ads API Forum.

Kindly see below responses to your queries:

1. Can you confirm that the address info is not supported for enhanced conversions?

>> As per our guide, only hashed_email and hashed_phone_number are supported for conversion uploads. 

2. The error message says that I should "Use only hashed email OR phone", does this mean that I can use either email or phone? Could this be the cause why the email is not appended in the first version (the one that I don't send the address info)? Or should I append the user_identifier after the email and after the phone? I've checked the SDKs github example code but the only example I found only sent email not email and phone.

>> As only hashed_email and hashed_phone_number are supported for conversion uploads through UploadClickConversionsRequest to send enhanced conversions for leads, this is why you encountered said error. I highly recommend you to follow our implementation guide here https://developers.google.com/google-ads/api/docs/conversions/upload-identifiers

3. We were already uploading click conversions using GCLID only so we've been storing GCLID for quite a while. I've tried uploading conversiosn using only the idenfiers to test it and I'm sure the emails and phones I used were from customers that came from a Google Ads campaign because we had the GCLID, I even filtered the customers that used a @gmail account just to be sure, however, everytime I tried I got the following error message: code: 3message: "The click can\'t be found for the specified identifiers. This may be because it did not come from a Google Ads campaign.

>> It appears that you are receiving a CLICK_NOT_FOUND error. Note that this error indicates that the provided click was not found for the provided user identifiers. This may be because the conversion did not come from a Google Ads campaign. You may use the click_view report to pull the GCLID details. 

Let us know if you have any additional questions. 

This message is in relation to case "ref:_00D1U1174p._5004Q2mwWff:ref"

Thanks,
 
Google Logo Google Ads API Team

 



Reply all
Reply to author
Forward
0 new messages