Export (0) Print
Expand All

UpdateAccount Service Operation

Updates the details of the specified account.

Request | Response

Error Codes

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

UpdateAccountRequest Message

Request Body

The UpdateAccountRequest object defines the elements of the request’s body. The elements must be in the same order as shown in the SOAP example.

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

For information about the values you set the DeveloperToken, Password, and UserName elements to, see Getting Started With the Bing Ads API.

Element

Description

Data Type

ApplicationToken

The application-access token. This header element is not used and should be null.

string

AuthenticationToken

The OAuth access token used to manage Bing Ads accounts linked to a Microsoft Account. For more information, see Managing User Authentication with OAuth.

string

DeveloperToken

The client application's developer access token.

string

Password

The Bing Ads user's sign-in password.

string

UserName

The Bing Ads user's sign-in user name. You may not set this element to a Microsoft account.

string

Request SOAP

The following example shows the complete request envelope.

<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/v9">
    <Action mustUnderstand="1">UpdateAccount</Action>
    <ApplicationToken i:nil="false"></ApplicationToken>
    <AuthenticationToken i:nil="false"></AuthenticationToken>
    <DeveloperToken i:nil="false"></DeveloperToken>
    <Password i:nil="false"></Password>
    <UserName i:nil="false"></UserName>
  </s:Header>
  <s:Body>
    <UpdateAccountRequest xmlns="https://bingads.microsoft.com/Customer/v9">
      <Account xmlns:e29="https://bingads.microsoft.com/Customer/v9/Entities" i:nil="false" i:type="-- specify derived type here with the appropriate prefix --">
        <e29:AccountType></e29:AccountType>
        <e29:BillToCustomerId i:nil="false"></e29:BillToCustomerId>
        <e29:CountryCode i:nil="false"></e29:CountryCode>
        <e29:CurrencyType i:nil="false"></e29:CurrencyType>
        <e29:AccountFinancialStatus i:nil="false"></e29:AccountFinancialStatus>
        <e29:Id i:nil="false"></e29:Id>
        <e29:Language i:nil="false"></e29:Language>
        <ForwardCompatibilityMap xmlns:e30="http://schemas.datacontract.org/2004/07/System.Collections.Generic" i:nil="false">
          <e30:KeyValuePairOfstringstring>
            <e30:key i:nil="false"></e30:key>
            <e30:value i:nil="false"></e30:value>
          </e30:KeyValuePairOfstringstring>
        </ForwardCompatibilityMap>
        <e29:LastModifiedByUserId i:nil="false"></e29:LastModifiedByUserId>
        <e29:LastModifiedTime i:nil="false"></e29:LastModifiedTime>
        <e29:Name i:nil="false"></e29:Name>
        <e29:Number i:nil="false"></e29:Number>
        <e29:ParentCustomerId></e29:ParentCustomerId>
        <e29:PaymentMethodId i:nil="false"></e29:PaymentMethodId>
        <e29:PaymentMethodType i:nil="false"></e29:PaymentMethodType>
        <e29:PrimaryUserId i:nil="false"></e29:PrimaryUserId>
        <e29:AccountLifeCycleStatus i:nil="false"></e29:AccountLifeCycleStatus>
        <e29:TimeStamp i:nil="false"></e29:TimeStamp>
        <e29:TimeZone i:nil="false"></e29:TimeZone>
        <e29:PauseReason i:nil="false"></e29:PauseReason>
        <!--Keep these fields if you set the i:type attribute to AdvertiserAccount-->
        <e29:AgencyContactName i:nil="false"></e29:AgencyContactName>
        <e29:AgencyCustomerId i:nil="false"></e29:AgencyCustomerId>
        <e29:SalesHouseCustomerId i:nil="false"></e29:SalesHouseCustomerId>
        <e29:TaxId i:nil="false"></e29:TaxId>
        <e29:TaxType i:nil="false"></e29:TaxType>
        <e29:BackUpPaymentInstrumentId i:nil="false"></e29:BackUpPaymentInstrumentId>
        <e29:BillingThresholdAmount i:nil="false"></e29:BillingThresholdAmount>
      </Account>
    </UpdateAccountRequest>
  </s:Body>
</s:Envelope>

UpdateAccountResponse Message

Response Body

The response does not contain additional body elements.

Response Header

Element

Description

Data Type

TrackingId

The identifier of the log entry that contains the details of the API call.

string

Response SOAP

The following example shows the complete response envelope.

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
  <s:Header xmlns="https://bingads.microsoft.com/Customer/v9">
    <TrackingId p4:nil="false" xmlns:p4="http://www.w3.org/2001/XMLSchema-instance"></TrackingId>
  </s:Header>
  <s:Body>
    <UpdateAccountResponse xmlns="https://bingads.microsoft.com/Customer/v9">
      <LastModifiedTime></LastModifiedTime>
    </UpdateAccountResponse>
  </s:Body>
</s:Envelope>

Error Codes

If the service operation fails, it throws a FaultException exception, which contains one or more of the Bing Ads API error data objects. For information about the fault detail objects, see Customer Management Error Data Objects and Handling Service Errors and Exceptions.

The following are example error codes that the error objects can include when using this service operation. For all documented error codes, please see Bing Ads Operation Error Codes.

Code

105

192

Community Additions

ADD
Show:
© 2014 Microsoft