UpdateCustomer Service Operation - Customer Management

Updates the details of the specified customer.

Request Elements

The UpdateCustomerRequest 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
Customer A customer object that contains the updated customer information.

This operation overwrites the existing customer data with the contents of the customer object that you pass. This operation performs a full update, and not a partial update. The Customer object must contain the time stamp value from the last time that the Customer object was written to. To ensure that the time stamp contains the correct value, call the GetCustomer operation. You can then update the customer data as appropriate, and call UpdateCustomer.

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 UpdateCustomerResponse 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
LastModifiedTime The date and time that the customer was last updated. The value is in Coordinated Universal Time (UTC).

The date and time value reflects the date and time at the server, not the client. For information about the format of the date and time, see the dateTime entry in Primitive XML Data Types.

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">UpdateCustomer</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>
    <UpdateCustomerRequest xmlns="https://bingads.microsoft.com/Customer/v11">
      <Customer xmlns:e354="https://bingads.microsoft.com/Customer/v11/Entities" i:nil="false">
        <e354:CustomerAddress i:nil="false">
          <e354:City i:nil="false">ValueHere</e354:City>
          <e354:CountryCode i:nil="false">ValueHere</e354:CountryCode>
          <e354:Id i:nil="false">ValueHere</e354:Id>
          <e354:Line1 i:nil="false">ValueHere</e354:Line1>
          <e354:Line2 i:nil="false">ValueHere</e354:Line2>
          <e354:Line3 i:nil="false">ValueHere</e354:Line3>
          <e354:Line4 i:nil="false">ValueHere</e354:Line4>
          <e354:PostalCode i:nil="false">ValueHere</e354:PostalCode>
          <e354:StateOrProvince i:nil="false">ValueHere</e354:StateOrProvince>
          <e354:TimeStamp i:nil="false">ValueHere</e354:TimeStamp>
        <e354:CustomerFinancialStatus i:nil="false">ValueHere</e354:CustomerFinancialStatus>
        <e354:Id i:nil="false">ValueHere</e354:Id>
        <e354:Industry i:nil="false">ValueHere</e354:Industry>
        <e354:LastModifiedByUserId i:nil="false">ValueHere</e354:LastModifiedByUserId>
        <e354:LastModifiedTime i:nil="false">ValueHere</e354:LastModifiedTime>
        <e354:MarketCountry i:nil="false">ValueHere</e354:MarketCountry>
        <ForwardCompatibilityMap xmlns:e355="http://schemas.datacontract.org/2004/07/System.Collections.Generic" i:nil="false">
            <e355:key i:nil="false">ValueHere</e355:key>
            <e355:value i:nil="false">ValueHere</e355:value>
        <e354:MarketLanguage i:nil="false">ValueHere</e354:MarketLanguage>
        <e354:Name i:nil="false">ValueHere</e354:Name>
        <e354:ServiceLevel i:nil="false">ValueHere</e354:ServiceLevel>
        <e354:CustomerLifeCycleStatus i:nil="false">ValueHere</e354:CustomerLifeCycleStatus>
        <e354:TimeStamp i:nil="false">ValueHere</e354:TimeStamp>
        <e354:Number i:nil="false">ValueHere</e354:Number>

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>
    <UpdateCustomerResponse xmlns="https://bingads.microsoft.com/Customer/v11">

Code Syntax

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

public async Task<UpdateCustomerResponse> UpdateCustomerAsync(
    Customer customer)
    var request = new UpdateCustomerRequest
        Customer = customer

    return (await CustomerManagementService.CallAsync((s, r) => s.UpdateCustomerAsync(r), request));
static UpdateCustomerResponse updateCustomer(
    Customer customer) throws RemoteException, Exception
    UpdateCustomerRequest request = new UpdateCustomerRequest();


    return CustomerManagementService.getService().updateCustomer(request);
static function UpdateCustomer(

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

    $request = new UpdateCustomerRequest();

    $request->Customer = $customer;

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


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