Mismatch in audience segment upload in Google ads

234 views
Skip to first unread message

Chethan U

unread,
Jan 13, 2023, 12:09:39 AM1/13/23
to Google Ads API and AdWords API Forum
Hi I tried to upload a audience segment which had 1 lakh rows to Google ads through google ads api.
But after uploading a segment to Google ads, in the UI I can see only 56k-66 k size.
Can you please convey me what's the issue. 

Chethan U

unread,
Jan 13, 2023, 1:35:15 AM1/13/23
to Google Ads API and AdWords API Forum
And one more thing, the segment which I uploaded has size 56-66 k size across search, YouTube, Gmail campaign.
But under display the size is <100.
Can I know what is the issue. 

Google Ads API Forum Advisor

unread,
Jan 13, 2023, 8:32:37 AM1/13/23
to chetha...@gmail.com, adwor...@googlegroups.com

Hi Chethan,

Thanks for reaching out to the Google Ads API Forum.

I understand that you uploaded an audience segment of 100k to Google Ads through Google Ads API, and you are seeing only 56k-66 k size. For us to investigate, could you confirm if you encountered any API error while uploading? However, for us to check further, our team requires complete logs in the format of the request and response logs along with the request-id generated for the API uploads, so we can provide specific recommendations.

We recommend you to enable logging to capture complete details if any error occurs by navigating to the Client libraries > Your client library (ex Python) > Logging documentation, which you can access from this link. Also, kindly send the complete logs to us via reply privately to author option.

Regards,

Google Logo
Yasar
Google Ads API Team
 


ref:_00D1U1174p._5004Q2hy0O0:ref

Chethan U

unread,
Jan 13, 2023, 9:03:43 AM1/13/23
to Google Ads API and AdWords API Forum
Thanks for your response.
Actually this is the code I used.
Here I have used 
"user_data.user_identifiers.append(user_identifier)" only once. Is this correct or should I include another "user_data.user_identifiers.append(user_identifier)" after " user_identifier.hashed_email = ((row['emails'])['hashed_email'])"  line. 
Is this the reason for getting less audience size?
Can you pls help me to find the issue . 

def build_offline_user_data_job_operations(client, customer_data):
  """Builds the schema of user data as defined in the API.

  Args:
    client: The Google Ads client.
    customer_data: Processed customer data to be uploaded.

  Returns:
    A list containing the operations.
  """

  customer_data_operations = []
  customer_dataframe=pd.DataFrame(customer_data)
  for index,row in customer_dataframe.iterrows():
    user_data_operation = client.get_type('OfflineUserDataJobOperation')
    user_data = user_data_operation.create
    user_identifier = client.get_type('UserIdentifier')
    user_identifier.hashed_email = ((row['emails'])['hashed_email'])

    user_identifier.hashed_phone_number = ((row['phones'])['hashed_phone_number'])
    user_data.user_identifiers.append(user_identifier)
    
    customer_data_operations.append(user_data_operation)
  
  return customer_data_operations

Google Ads API Forum Advisor

unread,
Jan 13, 2023, 1:59:10 PM1/13/23
to chetha...@gmail.com, adwor...@googlegroups.com
Hi,

Regarding your question "Is this the reason for getting less audience size?", you can refer to the below item from our customer match considerations section on what affects the reflected size :
  • A list may appear to be smaller than expected when viewed in the Audience Manager in the Google Ads UI. This view shows the number of active users in the list. A user is considered active if they have recently logged into their Google account. For more information on active users, see this discussion on how to troubleshoot low traffic with Customer Match lists.
You need also to ensure that the correct formatting and hashing as per the guide.

Best regards,

Google Logo
Peter Laurence
Google Ads API Team
 


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