UpdateAccount Service Operation - Customer Management

Updates the details of the specified account.

Request Elements

The UpdateAccountRequest 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
Account An AdvertiserAccount object that contains the updated account information.

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

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 This element is reserved for internal use and will be removed from a future version of the API. You must use the AuthenticationToken element to set user credentials. string
UserName This element is reserved for internal use and will be removed from a future version of the API. You must use the AuthenticationToken element to set user credentials. string

Response Elements

The UpdateAccountResponse 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 account 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.
dateTime

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

This template was generated by a tool to show the order of the body and header elements for the SOAP request. For supported types that you can use with this service operation, see the Request Body Elements reference above.

<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/v12">
    <Action mustUnderstand="1">UpdateAccount</Action>
    <AuthenticationToken i:nil="false">ValueHere</AuthenticationToken>
    <DeveloperToken i:nil="false">ValueHere</DeveloperToken>
  </s:Header>
  <s:Body>
    <UpdateAccountRequest xmlns="https://bingads.microsoft.com/Customer/v12">
      <Account xmlns:e288="https://bingads.microsoft.com/Customer/v12/Entities" i:nil="false">
        <e288:BillToCustomerId i:nil="false">ValueHere</e288:BillToCustomerId>
        <e288:CurrencyCode i:nil="false">ValueHere</e288:CurrencyCode>
        <e288:AccountFinancialStatus i:nil="false">ValueHere</e288:AccountFinancialStatus>
        <e288:Id i:nil="false">ValueHere</e288:Id>
        <e288:Language i:nil="false">ValueHere</e288:Language>
        <e288:LastModifiedByUserId i:nil="false">ValueHere</e288:LastModifiedByUserId>
        <e288:LastModifiedTime i:nil="false">ValueHere</e288:LastModifiedTime>
        <e288:Name i:nil="false">ValueHere</e288:Name>
        <e288:Number i:nil="false">ValueHere</e288:Number>
        <e288:ParentCustomerId>ValueHere</e288:ParentCustomerId>
        <e288:PaymentMethodId i:nil="false">ValueHere</e288:PaymentMethodId>
        <e288:PaymentMethodType i:nil="false">ValueHere</e288:PaymentMethodType>
        <e288:PrimaryUserId i:nil="false">ValueHere</e288:PrimaryUserId>
        <e288:AccountLifeCycleStatus i:nil="false">ValueHere</e288:AccountLifeCycleStatus>
        <e288:TimeStamp i:nil="false">ValueHere</e288:TimeStamp>
        <e288:TimeZone i:nil="false">ValueHere</e288:TimeZone>
        <e288:PauseReason i:nil="false">ValueHere</e288:PauseReason>
        <e288:ForwardCompatibilityMap xmlns:e289="http://schemas.datacontract.org/2004/07/System.Collections.Generic" i:nil="false">
          <e289:KeyValuePairOfstringstring>
            <e289:key i:nil="false">ValueHere</e289:key>
            <e289:value i:nil="false">ValueHere</e289:value>
          </e289:KeyValuePairOfstringstring>
        </e288:ForwardCompatibilityMap>
        <e288:LinkedAgencies i:nil="false">
          <e288:CustomerInfo>
            <e288:Id i:nil="false">ValueHere</e288:Id>
            <e288:Name i:nil="false">ValueHere</e288:Name>
          </e288:CustomerInfo>
        </e288:LinkedAgencies>
        <e288:SalesHouseCustomerId i:nil="false">ValueHere</e288:SalesHouseCustomerId>
        <e288:TaxInformation xmlns:e290="http://schemas.datacontract.org/2004/07/System.Collections.Generic" i:nil="false">
          <e290:KeyValuePairOfstringstring>
            <e290:key i:nil="false">ValueHere</e290:key>
            <e290:value i:nil="false">ValueHere</e290:value>
          </e290:KeyValuePairOfstringstring>
        </e288:TaxInformation>
        <e288:BackUpPaymentInstrumentId i:nil="false">ValueHere</e288:BackUpPaymentInstrumentId>
        <e288:BillingThresholdAmount i:nil="false">ValueHere</e288:BillingThresholdAmount>
        <e288:BusinessAddress i:nil="false">
          <e288:City i:nil="false">ValueHere</e288:City>
          <e288:CountryCode i:nil="false">ValueHere</e288:CountryCode>
          <e288:Id i:nil="false">ValueHere</e288:Id>
          <e288:Line1 i:nil="false">ValueHere</e288:Line1>
          <e288:Line2 i:nil="false">ValueHere</e288:Line2>
          <e288:Line3 i:nil="false">ValueHere</e288:Line3>
          <e288:Line4 i:nil="false">ValueHere</e288:Line4>
          <e288:PostalCode i:nil="false">ValueHere</e288:PostalCode>
          <e288:StateOrProvince i:nil="false">ValueHere</e288:StateOrProvince>
          <e288:TimeStamp i:nil="false">ValueHere</e288:TimeStamp>
          <e288:BusinessName i:nil="false">ValueHere</e288:BusinessName>
        </e288:BusinessAddress>
        <e288:AutoTagType i:nil="false">ValueHere</e288:AutoTagType>
        <e288:SoldToPaymentInstrumentId i:nil="false">ValueHere</e288:SoldToPaymentInstrumentId>
      </Account>
    </UpdateAccountRequest>
  </s:Body>
</s:Envelope>

Response SOAP

This template was generated by a tool to show 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/v12">
    <TrackingId d3p1:nil="false" xmlns:d3p1="http://www.w3.org/2001/XMLSchema-instance">ValueHere</TrackingId>
  </s:Header>
  <s:Body>
    <UpdateAccountResponse xmlns="https://bingads.microsoft.com/Customer/v12">
      <LastModifiedTime>ValueHere</LastModifiedTime>
    </UpdateAccountResponse>
  </s:Body>
</s:Envelope>

Code Syntax

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

public async Task<UpdateAccountResponse> UpdateAccountAsync(
	AdvertiserAccount account)
{
	var request = new UpdateAccountRequest
	{
		Account = account
	};

	return (await CustomerManagementService.CallAsync((s, r) => s.UpdateAccountAsync(r), request));
}
static UpdateAccountResponse updateAccount(
	AdvertiserAccount account) throws RemoteException, Exception
{
	UpdateAccountRequest request = new UpdateAccountRequest();

	request.setAccount(account);

	return CustomerManagementService.getService().updateAccount(request);
}
static function UpdateAccount(
	$account)
{

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

	$request = new UpdateAccountRequest();

	$request->Account = $account;

	return $GLOBALS['CustomerManagementProxy']->GetService()->UpdateAccount($request);
}
response=customermanagement_service.UpdateAccount(
	Account=Account)

Requirements

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