Export (0) Print
Expand All

UpdateGoalsRequest Message

Defines the request message that the client passes to the UpdateGoals operation.

<wsdl:message name="UpdateGoalsRequest">
  <wsdl:part name="parameters" element="tns:UpdateGoalsRequest" />
</wsdl:message>

Body Elements

Element

Description

Data Type

AccountId

The identifier of the account whose goals you want to update.

long

Goals

An array of Goal objects that contains the goals to update. The operation updates only those fields that are not NULL.

Goal[]

Header Elements

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 authentication token. This header element is not used and should be null.

string

CustomerAccountId

The identifier of the account that owns the entities in the request.

string

CustomerId

The identifier of the customer that owns the account.

string

DeveloperToken

The caller's developer-access token.

string

Password

The user's sign-in password.

string

UserName

The user's sign-in user name. You cannot set this element to a Microsoft account (formerly known as Windows Live ID).

string

If the operation fails to update one of the goals, none of the goals are updated.

SOAP

The following example shows the complete SOAP envelope for an UpdateGoalsRequest request.

<s:Envelope xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
  <s:Header xmlns="https://adcenter.microsoft.com/v8">
    <Action mustUnderstand="1">UpdateGoals</Action>
    <ApplicationToken i:nil="false"></ApplicationToken>
    <AuthenticationToken i:nil="false"></AuthenticationToken>
    <CustomerAccountId i:nil="false"></CustomerAccountId>
    <CustomerId i:nil="false"></CustomerId>
    <DeveloperToken i:nil="false"></DeveloperToken>
    <Password i:nil="false"></Password>
    <UserName i:nil="false"></UserName>
  </s:Header>
  <s:Body>
    <UpdateGoalsRequest xmlns="https://adcenter.microsoft.com/v8">
      <AccountId></AccountId>
      <Goals xmlns:e3="http://schemas.datacontract.org/2004/07/Microsoft.AdCenter.Advertiser.CampaignManagement.Api.DataContracts" i:nil="false">
        <e3:Goal>
          <e3:CostModel i:nil="false"></e3:CostModel>
          <e3:DaysApplicableForConversion i:nil="false"></e3:DaysApplicableForConversion>
          <e3:Id i:nil="false"></e3:Id>
          <e3:Name i:nil="false"></e3:Name>
          <e3:RevenueModel i:nil="false">
            <e3:ConstantRevenueValue i:nil="false"></e3:ConstantRevenueValue>
            <e3:Type i:nil="false"></e3:Type>
          </e3:RevenueModel>
          <e3:Steps i:nil="false">
            <e3:Step>
              <e3:Id i:nil="false"></e3:Id>
              <e3:Name i:nil="false"></e3:Name>
              <e3:PositionNumber i:nil="false"></e3:PositionNumber>
              <e3:Script i:nil="false"></e3:Script>
              <e3:Type i:nil="false"></e3:Type>
            </e3:Step>
          </e3:Steps>
          <e3:YEventId i:nil="false"></e3:YEventId>
        </e3:Goal>
      </Goals>
    </UpdateGoalsRequest>
  </s:Body>
</s:Envelope>

Requirements

CampaignManagementService.svc v8

Namespace: https://adcenter.microsoft.com/v8

Community Additions

Show:
© 2014 Microsoft