Export (0) Print
Expand All

AddAdExtensionsRequest Message

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

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

Body Elements

Element

Description

Data Type

AccountId

The identifier of the account to add the extensions to.

long

AdExtensions

The list of ad extensions of any type to add to the account. You can specify a maximum of 100 extensions per call.

AdExtension2[]

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

SOAP

The following example shows the complete SOAP envelope for an AddAdExtensionsRequest 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">AddAdExtensions</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>
    <AddAdExtensionsRequest xmlns="https://adcenter.microsoft.com/v8">
      <AccountId></AccountId>
      <AdExtensions i:nil="false">
        <AdExtension2 i:type="-- specify derived type here with the appropriate prefix --">
          <Id i:nil="false"></Id>
          <Status i:nil="false"></Status>
          <Type i:nil="false"></Type>
          <Version i:nil="false"></Version>
          <!--Keep these fields if you set the i:type attribute to CallAdExtension-->
          <CountryCode i:nil="false"></CountryCode>
          <IsCallOnly></IsCallOnly>
          <IsCallTrackingEnabled i:nil="false"></IsCallTrackingEnabled>
          <PhoneNumber i:nil="false"></PhoneNumber>
          <RequireTollFreeTrackingNumber i:nil="false"></RequireTollFreeTrackingNumber>
          <!--Keep these fields if you set the i:type attribute to SiteLinksAdExtension-->
          <SiteLinks i:nil="false">
            <SiteLink>
              <DestinationUrl i:nil="false"></DestinationUrl>
              <DisplayText i:nil="false"></DisplayText>
            </SiteLink>
          </SiteLinks>
          <!--Keep these fields if you set the i:type attribute to ProductAdExtension-->
          <Name></Name>
          <ProductSelection i:nil="false">
            <ProductConditionCollection>
              <Conditions i:nil="false">
                <ProductCondition>
                  <Attribute i:nil="false"></Attribute>
                  <Operand i:nil="false"></Operand>
                </ProductCondition>
              </Conditions>
            </ProductConditionCollection>
          </ProductSelection>
          <StoreId></StoreId>
          <StoreName></StoreName>
          <!--Keep these fields if you set the i:type attribute to LocationAdExtension-->
          <Address i:nil="false">
            <CityName i:nil="false"></CityName>
            <CountryCode i:nil="false"></CountryCode>
            <PostalCode i:nil="false"></PostalCode>
            <ProvinceCode i:nil="false"></ProvinceCode>
            <ProvinceName i:nil="false"></ProvinceName>
            <StreetAddress i:nil="false"></StreetAddress>
            <StreetAddress2 i:nil="false"></StreetAddress2>
          </Address>
          <CompanyName i:nil="false"></CompanyName>
          <GeoCodeStatus i:nil="false"></GeoCodeStatus>
          <GeoPoint i:nil="false">
            <LatitudeInMicroDegrees></LatitudeInMicroDegrees>
            <LongitudeInMicroDegrees></LongitudeInMicroDegrees>
          </GeoPoint>
          <IconMediaId i:nil="false"></IconMediaId>
          <ImageMediaId i:nil="false"></ImageMediaId>
          <PhoneNumber i:nil="false"></PhoneNumber>
        </AdExtension2>
      </AdExtensions>
    </AddAdExtensionsRequest>
  </s:Body>

Requirements

CampaignManagementService.svc v8

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

Community Additions

Show:
© 2014 Microsoft