Class InventoryTargeting
Targeted ad units and AU placements are applied with logical OR. Example:
(au:1 OR au:2 OR au_placement:5) AND (NOT (au:3))
Implements
Namespace: Google.Ads.AdManager.V1
Assembly: Google.Ads.AdManager.V1.dll
Syntax
public sealed class InventoryTargeting : IMessage<InventoryTargeting>, IEquatable<InventoryTargeting>, IDeepCloneable<InventoryTargeting>, IBufferMessage, IMessage
Constructors
InventoryTargeting()
Declaration
public InventoryTargeting()
InventoryTargeting(InventoryTargeting)
Declaration
public InventoryTargeting(InventoryTargeting other)
Parameters
| Type | Name | Description |
|---|---|---|
| InventoryTargeting | other |
Properties
ExcludedAdUnits
Optional. A list of ad units that should be excluded.
Excluded AUs take precedence over targeted AUs. In fact an AU can be excluded only if one of its ancestors is targeted. Subsequently child AUs of an excluded AU can not be targeted (except via a placement).
Declaration
public RepeatedField<AdUnitTargeting> ExcludedAdUnits { get; }
Property Value
| Type | Description |
|---|---|
| RepeatedField<AdUnitTargeting> |
TargetedAdUnits
Optional. A list of ad units that should be targeted/included.
Declaration
public RepeatedField<AdUnitTargeting> TargetedAdUnits { get; }
Property Value
| Type | Description |
|---|---|
| RepeatedField<AdUnitTargeting> |
TargetedPlacements
Optional. The resource names of the placements that should be targeted/included.
Declaration
public RepeatedField<string> TargetedPlacements { get; }
Property Value
| Type | Description |
|---|---|
| RepeatedField<string> |
TargetedPlacementsAsPlacementNames
PlacementName-typed view over the TargetedPlacements resource name property.
Declaration
public ResourceNameList<PlacementName> TargetedPlacementsAsPlacementNames { get; }
Property Value
| Type | Description |
|---|---|
| ResourceNameList<PlacementName> |