How can I update Managed Customer name with api ?

25 views
Skip to first unread message

di...@algomizer.com

unread,
Aug 24, 2015, 1:46:56 AM8/24/15
to AdWords API Forum
How can I  update Managed Customer name with api ?

Umesh Dengale

unread,
Aug 24, 2015, 3:51:09 PM8/24/15
to AdWords API Forum
Hello,

You could use the ManagedCustomerService to update the ManagedCustomer.name.

Thanks,
Umesh, AdWords API Team.

di...@algomizer.com

unread,
Aug 25, 2015, 5:26:01 AM8/25/15
to AdWords API Forum
According to  ManagedCustomerService documentation mutate only supports ADD operator,
so how can update exist customer ?
(I tried to mutate this SET operator but got error)

this example of code I run:

ManagedCustomerService _managedCustomerService = (ManagedCustomerService)_adwordsUser.GetService(AdWordsService.v201502.ManagedCustomerService);
ManagedCustomer customer = new ManagedCustomer();
            customer.name = customerNewName;
            customer.customerId = customerId;

ManagedCustomerOperation operation = new ManagedCustomerOperation();
            operation.operand = customer;
            operation.@operator = Operator.SET;

ManagedCustomerOperation[] operations = new ManagedCustomerOperation[] { operation };
ManagedCustomerReturnValue result = _managedCustomerService.mutate(operations);

Umesh Dengale

unread,
Aug 25, 2015, 11:46:27 AM8/25/15
to AdWords API Forum
Hello,

Yes, you are correct.The ManagedCustomerService support only Add operator. The AdWords API does not support updating Managed Customer name.

di...@algomizer.com

unread,
Aug 25, 2015, 11:49:51 AM8/25/15
to AdWords API Forum
Ok, Thank You.
Reply all
Reply to author
Forward
0 new messages