Hi Team,
I am trying to upload 1,000,000 hash emails for a CRM userlist via Google
Ads API, and a hash email represent a customer. I noticed that Doc says :
AddOfflineUserDataJobOperationsRequest
<https://developers.google.com/google-ads/api/reference/rpc/v12/AddOfflineUserDataJobOperationsRequest>
can
contain at most 100,000 identifiers across all of the UserData objects in
the operations.
So if I want to upload 1,000,000 hash emails via Google Ads API, is below
code right to implement this scenario? we create offlineUserDataJob once,
and call AddOfflineUserDataJobOperations function 100 times to add all
1,000,000 hash emails to offlineUserDataJob, and then call
RunOfflineUserDataJob function.
If I am wrong, please correct me. Thanks very much.
// Issues a request to create the offline user data job.
CreateOfflineUserDataJobResponse response1 =
service.CreateOfflineUserDataJob(
customerId.ToString(), offlineUserDataJob);
string offlineUserDataJobResourceName = response1.ResourceName;
for(int i=0; i< 100; i++)
{
AddOfflineUserDataJobOperationsRequest request =
new AddOfflineUserDataJobOperationsRequest()
{
ResourceName = offlineUserDataJobResourceName,
Operations = { BuildOfflineUserDataJobOperations() },
// BuildOfflineUserDataJobOperations function will
generate 100,000 OfflineUserDataJobOperations
EnablePartialFailure = true,
};
// Issues a request to add the operations to the offline user
data job.
AddOfflineUserDataJobOperationsResponse response2 =
service.AddOfflineUserDataJobOperations(request);
}
Operation<Empty, OfflineUserDataJobMetadata> operationResponse =
service.RunOfflineUserDataJob(offlineUserDataJobResourceName);
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/c23e33aa-a28c-4243-a8d8-c5e50a22921en%40googlegroups.com.