次の方法で共有


AdGroupCriterion データ オブジェクト - キャンペーン管理

指定した広告グループに適用する条件を定義します。

AdGroupCriterion をインスタンス化しないでください。 次のオブジェクトから派生する 1 つ以上のオブジェクトを作成できます。

構文

<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 オブジェクトには、AdGroupIdCriterionIdStatus、Type という要素があります

要素 説明 データ型
AdGroupId 条件を適用する広告グループの識別子。 long
基準 広告グループに適用する条件。 この条件は、広告グループ内の広告が配信されるかどうかを判断するのに役立ちます。

使用可能な条件の種類の一覧については、「 AdGroupCriterionType」を参照してください。
基準
Id 広告グループの条件の一意の Microsoft Advertising 識別子。 long
Status 条件を広告グループに適用するかどうかを決定する状態値。 AdGroupCriterionStatus
種類 広告グループの条件の種類。 詳細については、「解説」を参照してください。 string

注釈

Java および .NET 言語の場合、値は BiddableAdGroupCriterionNegativeAdGroupCriterion のどちらをインスタンス化するかによって決定されるため、Type 要素を設定しないでください。

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

Used By

AddAdGroupCriterions
AdGroupCriterionAction
GetAdGroupCriterionsByIds
UpdateAdGroupCriterions