I am trying to create a new Account and set autoTaggingEnabled. When I perform the operation I get back a message that this field is immutable - so how can I set this? Also, testing this is very cumbersome because there's no validateOnly option, so every successful call actually makes a new Account. Is there a way to do this with validation only?
Thanks!
Joel
// Build a new Customer object and populate required objects
Customer.Builder builder = Customer.newBuilder()
.setDescriptiveName(StringValue.of(spec.name))
.setCurrencyCode(StringValue.of(spec.currencyCode))
.setTimeZone(StringValue.of(spec.timeZone))
.setTestAccount(BoolValue.of(spec.testAccount));
//.setAutoTaggingEnabled(BoolValue.of(true)); // IMMUTABLE_FIELD message: "Field \'auto_tagging_enabled\' cannot be modified by \'CreateCustomerClient\' operation."
// Sends the request to create the customer.
try (CustomerServiceClient client = googleAdsClient.getLatestVersion().createCustomerServiceClient())
{
// Does not have a validateOnly option
CreateCustomerClientResponse response = client.createCustomerClient(spec.managerId, builder.build());
}
Was your question answered? Please rate your experience with us by taking a short survey.
If not -- reply to this email and tell us what else we can do to help.
Also find us on our blog and discussion group:
http://googleadsdeveloper.blogspot.com/search/label/adwords_api
https://developers.google.com/adwords/api/community/