Export (0) Print
Expand All

GetTargetsByAdGroupIdsRequest Message

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

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

Body Elements

Element

Description

Data Type

AdGroupIds

A list of identifiers of the ad groups that contain the targets that you want to get. The list can contain a maximum of 100 identifiers.

long[]

LocationTargetVersion

The version of the location codes to return if the target contains location targets. The following are the possible values. If null, the default is the oldest supported version.

  • Latest – Use the latest supported version

  • 1 – Metro- codes (deprecated)

  • 2 – Nielsen DMA® codes

Because older versions may not be supported in the future, consider setting this element to Latest to avoid breaking changes.

string

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 a GetTargetsByAdGroupIdsRequest 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">GetTargetsByAdGroupIds</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>
    <GetTargetsByAdGroupIdsRequest xmlns="https://adcenter.microsoft.com/v8">
      <AdGroupIds i:nil="false" xmlns:a1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <a1:long></a1:long>
      </AdGroupIds>
      <LocationTargetVersion></LocationTargetVersion>
    </GetTargetsByAdGroupIdsRequest>
  </s:Body>
</s:Envelope>

DMA® is a registered service mark of The Nielsen Company. Used under License.

Requirements

CampaignManagementService.svc v8

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

Community Additions

Show:
© 2014 Microsoft