OfflineUserDataJobOperation Customer Match List issue

447 views
Skip to first unread message

Alejandro Alvarenga

unread,
Aug 30, 2022, 11:53:17 AM8/30/22
to Google Ads API and AdWords API Forum
We have followed the code example in your documentation our primary language is python and I see an issue on the code may be the cause of the issue we are experiencing. This i s the link to the snipped I am referring to it. 

offline_user_data_operation = client.get_type(
"OfflineUserDataJobOperation"
)
if operation == 'add':
user_data_operation = offline_user_data_operation.create
else:
user_data_operation = offline_user_data_operation.remove

# Creates a first user data based on an email address.
user_identifier_with_hashed_email = client.get_type("UserIdentifier")
# Hash normalized email addresses based on SHA-256 hashing algorithm.
user_identifier_with_hashed_email.hashed_email = self._normalize_and_hash(customer_record['email'])

user_data_operation.user_identifiers.append(
user_identifier_with_hashed_email
)

return offline_user_data_operation

The issue I see on this code and the one in the documentation is that user_data_operation is defined but not set back to the offline_user_data_operation. If you return an array of user_data_operation you get casting issue because it said expect OfflineUserDataJobOperation. If you return OfflineUserDataJobOperation that is what was used to create user_data_operation executes without issues but not data display on the list as I expected because the UserData was not set back to the offline_user_data_operation. For a short period of time and for my surprise we saw data been populating on https://ads.google.com/ I have example of that but suddenly stop working. Can you indicate how to set back the array of UserData to the OfflineUserDataJobOperation.

I could not find anywhere on teh documentation how to do it or any example online

Google Ads API Forum Advisor

unread,
Aug 30, 2022, 1:43:05 PM8/30/22
to alejandro...@powerdigitalmarketinginc.com, adwor...@googlegroups.com
Hi Alejandro,

Here's our  add_customer_match_user_list.py sample that has been well tested. We can look at your  'DEBUG' log level request and response log of raw API communications of your user data uploads to see if you implemented correctly.

The request and response appears similar to the JSON Mappings in our REST documentation with additional headers and information such as request Id. Here are logging instructions for our Python Ads API Client Library.

You may send the requested information via "Reply to author" or via googleadsa...@google.com with a link to this forum post added to the new thread.

Regards,

Google Logo
Aryeh
Google Ads API Team
 

 

ref:_00D1U1174p._5004Q2dtPBF:ref

Alejandro Alvarenga

unread,
Aug 30, 2022, 7:30:29 PM8/30/22
to Google Ads API and AdWords API Forum
Hi Aryeh,

Thanks to reply. The problem with what I see on the code sample you reference is that first the operation job is created. With that Job we created the UserData that has the unique identifier with the hashed email. That UserData Object is not referenced back with the Job Operation so seems like is updated some how magically.  You can see what I am referring to on the first screenshoot somehow I see data been transfer now but the numbers dont match

According to our logs and how we are sync with you on a daily basis we are sending a total of 5000 emails a day that because of the limitation we have multiple clients with really large audiences so to exhaust or credentials we are going to send 5000 a day until we completely sync with you. Currently we are sending 250 request with each request containing 20 emails for a total of the 5000 I am referring to You will see that on the second screenshootScreen Shot 2022-08-30 at 4.18.11 PM.png

Screen Shot 2022-08-30 at 4.08.59 PM.png

There you can see the last job  offline request we have made with the last 20 emails but in your end we only see the following 

Screen Shot 2022-08-30 at 4.26.03 PM.png

which is a clear disconnection. Could you advice. The user list id for the one I am showing above is 4518407795

Google Ads API Forum Advisor

unread,
Aug 31, 2022, 2:06:45 AM8/31/22
to alejandro...@powerdigitalmarketinginc.com, adwor...@googlegroups.com

Hi Alejandro,
 

Thank you for getting back to us. I work with Aryeh and allow me to assist you here. I hope you are doing well today.
 

Upon checking your latest email. It appears that your main concern here is this "That UserData Object is not referenced back with the Job Operation so seems like is updated some how magically." so our team further gives more insight here could you please provide more information on this? Also, based on my understanding of your concern that you want to know why UserData Object is not reflected back in Job Operation? Can you please confirm if my understanding is correct ? I asked this because, so our team further gives insight also here.
 

Regarding Userdata Object, you may check this code request.operations = build_offline_user_data_job_operations(client) of the Add Customer Match User List .
 

Also, for this one "According to our logs and how we are sync with you on a daily basis we are sending a total of 5000 emails a day that because of the limitation we have multiple clients with really large audiences so to exhaust or credentials we are going to send 5000 a day until we completely sync with you. Currently we are sending 250 request with each request containing 20 emails for a total of the 5000 I am referring to You will see that on the second screenshoot. There you can see the last job offline request we have made with the last 20 emails but in your end we only see the following. which is a clear disconnection. Could you advice. The user list id for the one I am showing above is 4518407795 " could you please provide us the complete request and response logs with request ID and request header generated on your end? So our team further investigates this issue.
 

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


Regards,

Google Logo
Darwin
Google Ads API Team
 


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