Can't enable autotagging

89 views
Skip to first unread message

richard...@redbrain.com

unread,
Nov 19, 2018, 10:22:36 AM11/19/18
to AdWords API and Google Ads API Forum
Using the API to enable auto tagging, I am informed that I cannot set Parallel Tracking.

final CustomerServiceInterface accountCustomerService = adWordsServices.get(adWordsSession, CustomerServiceInterface.class);
final Customer[] customers = accountCustomerService.getCustomers();
final Customer customer = customers[0];
if (!customer.getAutoTaggingEnabled()) {
customer.setAutoTaggingEnabled(true);
customer.setParallelTrackingEnabled(false); // or true, or don't set it. same error all 3 variations...
try {
final Customer updated = accountCustomerService.mutate(customer);
} catch (RemoteException e) {
log.error("Error changing account " + account.getName());
failed.incrementAndGet();
System.exit(0);
}
}




Request ID: 00057b05e614d8610a1b0a066107798b ResponseTime(ms): 130 OperationsCount: 1 IsFault: true FaultMessage: ApiException{applicationExceptionType=ApiException, errors=[OperationAccessDenied{apiErrorType=OperationAccessDenied, errorString=OperationAccessDenied.ACTION_NOT_PERMITTED, fieldPath=customer.parallelTrackingEnabled, fieldPathElements=[FieldPathElement{field=customer}, FieldPathElement{field=parallelTrackingEnabled}], reason=ACTION_NOT_PERMITTED, trigger=}]}

So to try and work around this error, I tried setting parallelTracking to false in one run, and true in another and got the same error.

Any suggestions?


Thanks!

Bharani Cherukuri (AdWords API Team)

unread,
Nov 19, 2018, 4:11:59 PM11/19/18
to AdWords API and Google Ads API Forum
Hello, 

The ACTION_NOT_PERMITTED error is caused by unauthorized invocation of a service's method (get, mutate, etc.). Since Parallel Tracking is required for all the accounts from Oct 30, 2018 you will not be able to make any changes to this field. Can you try the API call again by removing the customer.setParallelTrackingEnabled(false); or you can set the customer.setParallelTrackingEnabled(null); and retry the request?

Thanks,
Bharani, AdWords API Team

richard...@redbrain.com

unread,
Nov 20, 2018, 3:05:32 AM11/20/18
to AdWords API and Google Ads API Forum
Hi Bharani,

Setting it to null solved the problem. I had tried not setting it at all, setting it to true or false, but not null. 

Thanks
Reply all
Reply to author
Forward
0 new messages