Muokkaa

Jaa


Criterion Data Object - Campaign Management

Defines the base object of a criterion.

Do not try to instantiate a Criterion. You can create one or more of the following objects that derive from it.

For a list of criterion types that you can use with CampaignCriterion, see the CampaignCriterionType value set.

For a list of criterion types that you can use with AdGroupCriterion, see the AdGroupCriterionType value set.

Syntax

<xs:complexType name="Criterion" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:sequence>
    <xs:element minOccurs="0" name="Type" nillable="true" type="xs:string" />
  </xs:sequence>
</xs:complexType>

Elements

The Criterion object has the following elements: Type.

Element Description Data Type
Type The type of criterion. For more information, see Remarks. string

Remarks

For Java and the .NET languages, do not set the Type element because the value is determined by whether you instantiate a location or other criterion type.

If you generate the SOAP manually, use the type attribute of the <Criterion> node to specify the type of criterion, as shown in the following example.

<Criterion i:type="LocationCriterion" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
   . . .
</Criterion>

Requirements

Service: CampaignManagementService.svc v13
Namespace: https://bingads.microsoft.com/CampaignManagement/v13

Used By

AdGroupCriterion
CampaignCriterion