Hello Google support team,
I'm, implementing enhanced conversions for leads wiht the Python SDK and
I've been following this documentation
<https://developers.google.com/google-ads/api/docs/conversions/upload-identifiers>
:
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.
[image: 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
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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
"Google Ads API and AdWords 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/e5605808-f83f-44a5-a2ab-5812122de4e1n%40googlegroups.com.