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());
}
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit
https://groups.google.com/d/msgid/adwords-api/08c24f9f-0426-4d2d-8e51-bea16a9d674e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.