Hi, I modified the code to upload user identifiers such as  'mobilenumber'  
and 'email' as same user identifiers.
And I tried to upload csv file of 99998 rows, but still I'm getting error 
""Maximum number of user identifiers allowed per request is 100000 and per 
operation is 20".
This is the code, can you please convey me what is 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_data.user_identifiers.append(user_identifier)
    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 Monday, January 9, 2023 at 1:31:23 PM UTC+5:30 adsapi wrote:

> Hi,
>
> Thank you for the reply.
>
> Kindly note that our team doesn't provide any custom code implemenations, 
> but you may need to implement it on your own. However, you can use the 
> OfflineUserDataJobService 
> <https://developers.google.com/google-ads/api/reference/rpc/v12/OfflineUserDataJobService>
>  to create 
> <https://developers.google.com/google-ads/api/reference/rpc/v12/OfflineUserDataJobOperation#create>
>  a 
> new UserData 
> <https://developers.google.com/google-ads/api/reference/rpc/v12/UserData> 
> with 
> the same resource_name 
> <https://developers.google.com/google-ads/api/reference/rpc/v12/AddOfflineUserDataJobOperationsRequest#resource_name>
>  as 
> the previous *OfflineUserDataJob* 
> <https://developers.google.com/google-ads/api/reference/rpc/v12/OfflineUserDataJob>
>  (offline_user_data_job_resource_name) 
> you used.
>
>
> Best regards,
> [image: Google Logo] 
> Heidi 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q2hZOVp: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 [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/a5374377-ab17-43f3-8822-981aa687e6fdn%40googlegroups.com.
  • &q... Chethan U
    • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
      • ... Chethan U
        • ... Chethan U
          • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
            • ... Chethan U
              • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
                • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
                • ... Chethan U

Reply via email to