Hi! We are migrating from google-adwords API to google-ads API, using the 
java client.

We have followed this example of the google-ads api 
<https://github.com/googleads/google-ads-java/blob/23896318094c7e787ec790e47733a4075679f0aa/google-ads-examples/src/main/java/com/google/ads/googleads/examples/campaignmanagement/AddCompleteCampaignsUsingBatchJob.java>,
 
adapting it to only modify the customer creating the objects like this:

Customer customer = Customer.newBuilder()
.setResourceName(ResourceNames.customer(customerId))
.setFinalUrlSuffix("test-suffix")
.setTrackingUrlTemplate("http://wwww.test.com/{lpurl}";)
.setDescriptiveName("this-is-a-test")
.build();

CustomerOperation customerOperation = CustomerOperation.newBuilder()
.setUpdate(customer)
.setUpdateMask(FieldMasks.allSetFieldsOf(customer))
.build();

*var customerMutateOperation = *MutateOperation.newBuilder()
.setCustomerOperation(customerOperation).build();

AddBatchJobOperationsResponse response =
batchJobServiceClient.addBatchJobOperations(
AddBatchJobOperationsRequest.newBuilder()
.setResourceName(batchJobResourceName)
.addMutateOperations(customerMutateOperation)
.build());


However, the batch job never ends and We finish with a TimeoutException 
after waiting for 2 minutes for this operation.

Could you help us trying to define how to update the account using 
BatchJobServiceClient?

Thank you ! 

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/a61beb26-0b24-4cb7-8315-8f7cdf6861fcn%40googlegroups.com.
  • He... Julian Canada
    • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
      • ... Julian Canada
        • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
          • ... Julian Canada
            • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum

Reply via email to