AdGroupCriterion 数据对象 - 市场活动管理

定义要应用于指定广告组的条件。

不要尝试实例化 AdGroupCriterion。 可以创建派生自它的一个或多个以下对象。

语法

<xs:complexType name="AdGroupCriterion" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:sequence>
    <xs:element minOccurs="0" name="AdGroupId" type="xs:long" />
    <xs:element minOccurs="0" name="Criterion" nillable="true" type="tns:Criterion" />
    <xs:element minOccurs="0" name="Id" nillable="true" type="xs:long" />
    <xs:element minOccurs="0" name="Status" nillable="true" type="tns:AdGroupCriterionStatus" />
    <xs:element minOccurs="0" name="Type" nillable="true" type="xs:string" />
  </xs:sequence>
</xs:complexType>

元素

AdGroupCriterion 对象具有以下元素:AdGroupIdCriterionIdStatusType

元素 说明 数据类型
AdGroupId 要对其应用条件的广告组的标识符。 long
条件 要应用于广告组的条件。 该条件有助于确定是否提供广告组中的广告。

有关可用条件类型的列表,请参阅 AdGroupCriterionType
条件
Id 广告组条件的唯一 Microsoft Advertising 标识符。 long
状态 一个状态值,该值确定是否将条件应用于广告组。 AdGroupCriterionStatus
类型 广告组条件的类型。 有关详细信息,请参阅备注 string

备注

对于 Java 和 .NET 语言,请勿设置 Type 元素,因为该值由实例化 BiddableAdGroupCriterion 还是 NegativeAdGroupCriterion 决定。

如果手动生成 SOAP,请使用节点的 <AdGroupCriterion>type 属性,如以下示例所示,指定条件的类型。

<AdGroupCriterion i:type="BiddableAdGroupCriterion" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
    <Id i:nil="true" />
    <Status i:nil="true" />
     . . .
</AdGroupCriterion>

要求

服务: CampaignManagementService.svc v13
命名 空间: https://bingads.microsoft.com/CampaignManagement/v13

使用者

AddAdGroupCriterions
AdGroupCriterionAction
GetAdGroupCriterionsByIds
UpdateAdGroupCriterions