type AdExclusionRule (v201808)

Represents an inventory blocking rule, which prevents certain ads from being served to specified ad units.


Namespace
https://www.google.com/apis/ads/publisher/v201808

Field

id

xsd:long

The unique ID of the AdExclusionRule. This attribute is readonly and is assigned by Google.

name

xsd:string

The name of the AdExclusionRule. This attribute is required.

isActive

xsd:boolean

Whether or not the AdExclusionRule is active. An inactive rule will have no effect on adserving. This attribute is readonly.

inventoryTargeting

InventoryTargeting

The targeting information about which AdUnitTargeting objects this rule is in effect for. Any AdUnitTargeting objects included here will have their children included implicitly. Children of a targeted ad unit can be excluded. This attribute is required.

isBlockAll

xsd:boolean

Whether or not this rule blocks all ads from serving other than the labels or advertisers specified. This attribute is optional and defaults to false.

blockedLabelIds

xsd:long[]

The labels that will be blocked from serving. Any advertiser, order or line item with one of these labels will not serve on the relevant ad units and their children.

allowedLabelIds

xsd:long[]

The allowed list of labels that will not be blocked by this rule. This trumps the values of isBlockAllLabels and blockedLabelIds. For example, if a rule specifies a blocked label "Cars", and an allowed label "Sports", any ad that is labeled both "Sports" and "Cars" will not be blocked by this rule.

type

AdExclusionRuleType

The derived type of this rule: whether it is associated with labels, unified entities, or competitive groups. Because it is derived, it is also read-only, so changes made to this field will not be persisted.


Enumerations
LABEL
Rule is associated with labels and is relevant only for direct reservations.
UNKNOWN
The value returned if the actual value is not exposed by the requested API version.

Send feedback about...

Ad Manager API
Ad Manager API
Need help? Visit our support page.