Re: Error ManagedCustomerServiceError INVALID_DESCRIPTIVE_NAME when update customer

21 views
Skip to first unread message
Message has been deleted

Peter Oliquino

unread,
Jan 8, 2018, 1:40:50 AM1/8/18
to AdWords API Forum
Hi Hoang,

I had to delete your initial post to this thread as it contained sensitive information related to your account. You may refer to our forum posting guidelines for future posts in order to avoid exposing sensitive information in the future. Additionally, I had reposted your concern with the masked sensitive information for reference for other users who may have encountered the same issue :


"i want to set auto-tagging to my customer account via my mcc account. i using PHP API like this:
$customer =new Customer();
$customer->setCustomerId('XXXXXXXXXX');
$customer->setAutoTaggingEnabled(true);

$operations = [];
$operation = new ManagedCustomerOperation();
$operation->setOperator(Operator::SET);
$operation->setOperand($customer);
$operations[] = $operation;

$managedCustomerService->mutate($operations);
But above code return the error: PHP Fatal error:  Uncaught exception 'Google\AdsApi\AdWords\v201705\cm\ApiException' with message '[ManagedCustomerServiceError.INVALID_DESCRIPTIVE_NAME @ operations[0].operand.clientName]' in ..vendor\googleads\googleads-php-lib\src\Google\AdsApi\Common\Util\Reflection.php:39

 

please explain for me. thank a lot."

Thanks and regards,
Peter
AdWords API Team

Peter Oliquino

unread,
Jan 8, 2018, 1:49:34 AM1/8/18
to AdWords API Forum
Hi Hoang,

For my response, the error you have encountered could be due to you passing the AutoTaggingEnabled field to the ManagedCustomerService. The said field is currently only supported in the CustomerService of the AdWords API. I would recommend that you use the CustomerService instead if you wish to update the AutoTaggingEnabled field.

Additionally, as stated in the CustomerService.mutate() documentation, I would recommend that you first read the discussion in this guide before updating the said field.
Reply all
Reply to author
Forward
0 new messages