Trying to create a manager account with the API, is it possible?

27 views
Skip to first unread message

rentca...@gmail.com

unread,
Aug 31, 2016, 9:49:07 PM8/31/16
to AdWords API Forum
I am trying to create accounts for my customers using the API, and would like each customer to have their own manager account underneath my root MCC.

When I use ManagedCustomerService to create the account, .canManageAccounts is always false, and the documentation says it is ignored when sent to the API.  Of course the documentation doesn't mention any way to set this value to true or if its possible or not.

If I try to use a MoveOperation to move a child account under a customer manager account, i get error ManagedCustomerServiceError.NOT_MANAGER

    Private Sub LinkAccounts(ByRef ParentAcctId As Int64, ByRef ChildAcctId As Int64, ByRef CustomerService As ManagedCustomerService)
            Dim moveOp As MoveOperation = New MoveOperation()
            moveOp.oldManagerCustomerId = RootMCCId 'This is my root MCC acct id
            moveOp.operator = [Operator].SET

            Dim link As ManagedCustomerLink = New ManagedCustomerLink()
            link.clientCustomerId = ChildAcctId
            link.linkStatus = LinkStatus.ACTIVE
            link.managerCustomerId = ParentAcctId
            moveOp.operand = link
            Dim operations() As MoveOperation = {moveOp}
            CustomerService.mutateManager(operations)
        End Sub

How is this supposed to work?  There is support for hierarchy and getting links between accounts, but i can't add them?

Joyce Lava

unread,
Aug 31, 2016, 11:31:28 PM8/31/16
to AdWords API Forum
Hi,

The manager account (MCC) can only be created using this link for Production MCC and this link for Test MCC. There is currently no way in the AdWords API to create MCC accounts. The ManagedCustomerService.mutate operation is used to create or modify a ManagedCustomer (canManageClients = false), and that is why this field is read-only and ignored when sent to the request.

Thanks,
Joyce, AdWords API Team
Reply all
Reply to author
Forward
0 new messages