Hi Team,

We need to upload the millions of customers' PII data to the user list of 
type CUSTOMER_MATCH_USER_LIST. 

As part of this, we are submitting thousands of 
https://developers.google.com/google-ads/api/fields/v9/offline_user_data_job 
jobs. Using follow java code.


String audienceId = 
statusAwareUserDataOperation.getAudienceAction().getAudienceId();
String customerId = credentials.getCustomerId();
OfflineUserDataJob offlineUserDataJob = OfflineUserDataJob.newBuilder()
        
.setType(OfflineUserDataJobTypeEnum.OfflineUserDataJobType.CUSTOMER_MATCH_USER_LIST)
        
.setCustomerMatchUserListMetadata(CustomerMatchUserListMetadata.newBuilder()
        .setUserList(ResourceNames.userList(Long.valueOf(customerId), 
Long.valueOf(audienceId)))).build();

try (OfflineUserDataJobServiceClient offlineUserDataJobServiceClient = 
googleAdsClient.getLatestVersion().createOfflineUserDataJobServiceClient()) 
{
    // Issues a request to create the offline user data job.
    CreateOfflineUserDataJobResponse createOfflineUserDataJobResponse = 
offlineUserDataJobServiceClient.createOfflineUserDataJob(customerId, 
offlineUserDataJob);
    String offlineUserDataJobResourceName = 
createOfflineUserDataJobResponse.getResourceName();
    AddOfflineUserDataJobOperationsRequest 
addOfflineUserDataJobOperationsRequest = 
AddOfflineUserDataJobOperationsRequest.newBuilder()
            
.setResourceName(offlineUserDataJobResourceName).setEnablePartialFailure(true)
            .addAllOperations(operations).build();

    // Issues a request to add the operations to the offline user data job.
    AddOfflineUserDataJobOperationsResponse response = 
offlineUserDataJobServiceClient.addOfflineUserDataJobOperations(addOfflineUserDataJobOperationsRequest);

    // Issues an asynchronous request to run the offline user data job for 
executing all added operations.
    
offlineUserDataJobServiceClient.runOfflineUserDataJobAsync(offlineUserDataJobResourceName);
    return new ImmutablePair<>(response,offlineUserDataJobResourceName);
}

runOfflineUserDataJobAsync method successfully invoked for all these 
thousands of jobs. 


Issue:- 

A few jobs out of these thousands of jobs submitted for running are still 
pending status for more than 48 hours  when queried offline_user_data_job 
with offline job resource id.


Is this behavior is expected or let us know if any correction required. 

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/96ad0032-c064-4073-a901-1340fea22dcbn%40googlegroups.com.
  • Fe... Paid Media
    • ... Paid Media
      • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum

Reply via email to