UpdateClientLinks Service Operation - Customer Management

Updates the status of the specified client links. To update a client link, the TimeStamp element is required for validation, so you must first call the SearchClientLinks to get the existing ClientLink object. Then modify the Status element of the returned ClientLink, and include the updated ClientLink object in a subsequent call to the UpdateClientLinks operation. For more information about the client link lifecycle, see Link to Client Accounts.

If your user is within an agency, then the operation may be used to update the client link status of any account that you manage or have invited to manage. For more information about becoming an agency, see the Resources for agency partners.

If your user is within a client customer that has one or more accounts managed or invited to be managed by an agency, then you may only use this operation to update the status as LinkAccepted or LinkDeclined. A client may also accept or decline the link request via the Bing Ads web application. For more information, see How to have an agency manage your Bing Ads account.

The role of the user calling this operation must be Super Admin. For more information, see User Roles and Available Service Operations.

There is no set limit to the amount of client accounts that can be linked to an agency.


This feature is not supported in sandbox.

Request Elements

The UpdateClientLinksRequest object defines the body and header elements of the service operation request. The elements must be in the same order as shown in the Request SOAP.

Request Body Elements

Element Description Data Type
ClientLinks The list of client links to update.

You should limit your request to 10 client links per call.
ClientLink array

Request Header Elements

Element Description Data Type
AuthenticationToken The OAuth access token that represents a Microsoft Account user who has permissions to Bing Ads accounts. string
DeveloperToken The developer token used to access the Bing Ads API. string
Password The Bing Ads managed user's sign-in password. string
UserName The Bing Ads managed user's sign-in name. You must not set this element to a Microsoft account or email address. string


The UserName and Password header elements are deprecated. In future versions of the API, Bing Ads will transition exclusively to Microsoft Account (email address) authentication. For more information, see Authentication with OAuth. UserName and Password are still required for Bing Ads managed credentials, but they are not applicable for Microsoft account authentication. To authenticate a Microsoft account, use the AuthenticationToken] header instead of UserName and Password.

Response Elements

The UpdateClientLinksResponse object defines the body and header elements of the service operation response. The elements are returned in the same order as shown in the Response SOAP.

Response Body Elements

Element Description Data Type
OperationErrors A list of one or more reasons why the service operation failed, and no client links were added. OperationError array
PartialErrors An array of OperationError lists that contain details for any client links that were not successfully added.

Results are returned in the same order corresponding to the requested client links. The number of first dimension list elements is equal to the requested client links count. For successfully added client links, the OperationError element at the corresponding index is null.
OperationError array

Response Header Elements

Element Description Data Type
TrackingId The identifier of the log entry that contains the details of the API call. string

Request SOAP

The following template shows the order of the body and header elements for the SOAP request.

<s:Envelope xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
  <s:Header xmlns="https://bingads.microsoft.com/Customer/v11">
    <Action mustUnderstand="1">UpdateClientLinks</Action>
    <ApplicationToken i:nil="false">ValueHere</ApplicationToken>
    <AuthenticationToken i:nil="false">ValueHere</AuthenticationToken>
    <DeveloperToken i:nil="false">ValueHere</DeveloperToken>
    <Password i:nil="false">ValueHere</Password>
    <UserName i:nil="false">ValueHere</UserName>
    <UpdateClientLinksRequest xmlns="https://bingads.microsoft.com/Customer/v11">
      <ClientLinks xmlns:e350="https://bingads.microsoft.com/Customer/v11/Entities" i:nil="false">
          <e350:ClientAccountId i:nil="false">ValueHere</e350:ClientAccountId>
          <e350:ClientAccountNumber i:nil="false">ValueHere</e350:ClientAccountNumber>
          <e350:ManagingCustomerId i:nil="false">ValueHere</e350:ManagingCustomerId>
          <e350:ManagingCustomerNumber i:nil="false">ValueHere</e350:ManagingCustomerNumber>
          <e350:Note i:nil="false">ValueHere</e350:Note>
          <e350:Name i:nil="false">ValueHere</e350:Name>
          <e350:InviterEmail i:nil="false">ValueHere</e350:InviterEmail>
          <e350:InviterName i:nil="false">ValueHere</e350:InviterName>
          <e350:InviterPhone i:nil="false">ValueHere</e350:InviterPhone>
          <e350:StartDate i:nil="false">ValueHere</e350:StartDate>
          <e350:Status i:nil="false">ValueHere</e350:Status>
          <e350:Timestamp i:nil="false">ValueHere</e350:Timestamp>
          <ForwardCompatibilityMap xmlns:e351="http://schemas.datacontract.org/2004/07/System.Collections.Generic" i:nil="false">
              <e351:key i:nil="false">ValueHere</e351:key>
              <e351:value i:nil="false">ValueHere</e351:value>

Response SOAP

The following template shows the order of the body and header elements for the SOAP response.

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
  <s:Header xmlns="https://bingads.microsoft.com/Customer/v11">
    <TrackingId d3p1:nil="false" xmlns:d3p1="http://www.w3.org/2001/XMLSchema-instance">ValueHere</TrackingId>
    <UpdateClientLinksResponse xmlns="https://bingads.microsoft.com/Customer/v11">
      <OperationErrors xmlns:e352="https://bingads.microsoft.com/Customer/v11/Exception" d4p1:nil="false" xmlns:d4p1="http://www.w3.org/2001/XMLSchema-instance">
          <e352:Details d4p1:nil="false">ValueHere</e352:Details>
          <e352:Message d4p1:nil="false">ValueHere</e352:Message>
      <PartialErrors xmlns:e353="https://bingads.microsoft.com/Customer/v11/Exception" d4p1:nil="false" xmlns:d4p1="http://www.w3.org/2001/XMLSchema-instance">
            <e353:Details d4p1:nil="false">ValueHere</e353:Details>
            <e353:Message d4p1:nil="false">ValueHere</e353:Message>

Code Syntax

The example syntax can be used with Bing Ads SDKs. See Bing Ads Code Examples for more examples.

public async Task<UpdateClientLinksResponse> UpdateClientLinksAsync(
    IList<ClientLink> clientLinks)
    var request = new UpdateClientLinksRequest
        ClientLinks = clientLinks

    return (await CustomerManagementService.CallAsync((s, r) => s.UpdateClientLinksAsync(r), request));
static UpdateClientLinksResponse updateClientLinks(
    ArrayOfClientLink clientLinks) throws RemoteException, Exception
    UpdateClientLinksRequest request = new UpdateClientLinksRequest();


    return CustomerManagementService.getService().updateClientLinks(request);
static function UpdateClientLinks(

    $GLOBALS['Proxy'] = $GLOBALS['CustomerManagementProxy'];

    $request = new UpdateClientLinksRequest();

    $request->ClientLinks = $clientLinks;

    return $GLOBALS['CustomerManagementProxy']->GetService()->UpdateClientLinks($request);


Service: CustomerManagementService.svc v11
Namespace: https://bingads.microsoft.com/Customer/v11