Migrated our application from Adwords to Google Ads having some issues with User Match List

81 views
Skip to first unread message

Alejandro Alvarenga

unread,
Aug 29, 2022, 5:19:22 PM8/29/22
to Google Ads API and AdWords API Forum
We have migrated our application from Adwords to Google Ads API and we have encountered multiple challenges that we have resolved as they came by reference your documentation or following previous posts here but now we have reached at stopping point which I think I know why but would need your help with some advice.  
I will start describing what we have done so far. First we migrated as mentioned before to Google Ads API before when we used Adwords we where able to submit a whole audience so the first issue we encountered was hitting a rate limit that indicate us that is a maximum of 20 OfflineUserDataJobOperation per request so we refactored our code to accommodate to that using the example in your documentation and then I started getting a second error that was related with concurrency. I implemented the solution someone in your team suggested to other person add a delay of 30 second per request and add a retry logic that seems like resolved that issue. Started to see some segments audiences getting populated but suddenly they stop populating. After giving a second look to your code I saw a problem with it and is an issue I see it in our as well as we used yours as reference https://developers.google.com/google-ads/api/docs/remarketing/audience-types/customer-match. Our primary language is python. On that code I see the UserDataJobOperation been created but not set back to OfflineUserDataJobOperation I have try to return the User data object as that is what made more sense but I get error sending userData expected OfflineUserDataJobOperation. I saw back your example and the OfflineUserDataJobOperation is used to create the UserData but dont set that back to it so left it like you have it even when looks wrong and for me surprise worked somehow for a couple days but now is not longer doing it.

def _build_offline_user_data_job_operation(self, client, operation, customer_record):
"""Builds and returns two sample offline user data job operations.

Args:
client: The Google Ads client.

Returns:
A list containing the operations.
"""

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

That is a snipped of our code I think what is needed is set that back that user_data_operation with the offline_user_data_operation and then should be work as expected.

I have logs records of the API hitting you and said the job was created successfully in your end with status running but is not populating the audience segment anymore. Also I have an example one that got populated previously. 

Please advice we will appreciated


Google Ads API Forum Advisor

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

Thank you for reaching us out. I am Sherwin from Google Ads API support team. I hope that you are doing well today.

Moving forward to your concern, could you please provide us the complete request and response logs with request ID and request header generated on your end? 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. If you haven't enabled the logging yet, logging can be enabled by navigating to the Client libraries > Your client library (ex. Java) > Logging documentation, which you can access from this link. Add to that, could you please provide us the full screenshot of the UI showing that the Audience are not populating at all?

Kind regards,
Google Logo
Sherwin Vincent
Google Ads API Team
 


ref:_00D1U1174p._5004Q2dowBw:ref

Alejandro Alvarenga

unread,
Aug 31, 2022, 12:02:49 AM8/31/22
to Google Ads API and AdWords API Forum
Hi Sherwin,

Looks like now is populating data but we are loosing around half of the records. I have posted in this conversation more detail 


By any chance can we have like a hangouts session or phone call tomorrow that may be easier. I am sure this could be resolved within 10 to 15 min. I can provide the whole request and response from our logs but we are doing 250 request each with 20 email operations so will be a long log to provide but we can do that as well. I have transferred a smaller audience of 900+ emails as well but we only see a range on your end that said 400-500 so in that one we also loosing about half. I will appreciate your response and help.

Google Ads API Forum Advisor

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

Hi Alejandro,
 

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

Moving forward, regarding this, "By any chance can we have like a hangouts session or phone call tomorrow that may be easier. I am sure this could be resolved within 10 to 15 min. I can provide the whole request and response from our logs but we are doing 250 request each with 20 email operations so will be a long log to provide but we can do that as well. I have transferred a smaller audience of 900+ emails as well but we only see a range on your end that said 400-500 so in that one we also loosing about half." to better check this concern, could you please provide the complete Ads API logs (request and response with request-id) that my colleague "Sherwin" requested? so our team further investigates this issue and gives guidance on this.
 

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._5004Q2dowBw:ref

Google Ads API Forum Advisor

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

Hi Alejandro,
 

In addition to my last email about this, "By any chance can we have like a hangouts session or phone call tomorrow that may be easier." I'm afraid that our team can only provide support through email so cannot join to any call.
 

Reply all
Reply to author
Forward
0 new messages