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

On Friday, January 13, 2023 at 7:02:37 PM UTC+5:30 adsapi wrote:

> 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* 
> <https://developers.google.com/google-ads/api/docs/concepts/field-service#request>
>  
> and *response* 
> <https://developers.google.com/google-ads/api/docs/concepts/field-service#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* 
> <https://developers.google.com/google-ads/api/docs/client-libs>. Also, 
> kindly send the complete logs to us via reply privately to author option.
>
> Regards,
> [image: Google Logo] 
> Yasar 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q2hy0O0:ref
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
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 adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/4ad7f575-938d-478c-b932-6995c0f78770n%40googlegroups.com.
  • Mi... Chethan U
    • ... Chethan U
      • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
        • ... Chethan U

Reply via email to