Class Goal
Defines the criteria a [LineItem][google.ads.admanager.v1.LineItem] needs to satisfy to meet its delivery goal.
Namespace: Google.Ads.AdManager.V1
Assembly: Google.Ads.AdManager.V1.dll
Syntax
public sealed class Goal : IMessage<Goal>, IEquatable<Goal>, IDeepCloneable<Goal>, IBufferMessage, IMessage
Constructors
Goal()
Declaration
public Goal()
Goal(Goal)
Declaration
public Goal(Goal other)
Parameters
| Type | Name | Description |
|---|---|---|
| Goal | other |
Properties
GoalType
The type of the goal for the LineItem. It defines the period over which the goal should be reached.
Declaration
public GoalTypeEnum.Types.GoalType GoalType { get; set; }
Property Value
| Type | Description |
|---|---|
| GoalTypeEnum.Types.GoalType |
HasGoalType
Gets whether the "goal_type" field is set
Declaration
public bool HasGoalType { get; }
Property Value
| Type | Description |
|---|---|
| bool |
HasUnitType
Gets whether the "unit_type" field is set
Declaration
public bool HasUnitType { get; }
Property Value
| Type | Description |
|---|---|
| bool |
HasUnits
Gets whether the "units" field is set
Declaration
public bool HasUnits { get; }
Property Value
| Type | Description |
|---|---|
| bool |
UnitType
The type of the goal unit for the LineItem.
Declaration
public UnitTypeEnum.Types.UnitType UnitType { get; set; }
Property Value
| Type | Description |
|---|---|
| UnitTypeEnum.Types.UnitType |
Units
If this is a primary goal, it represents the number or percentage of impressions or clicks that will be reserved. If the line item is of type [LineItemTypeEnum.LineItemType.SPONSORSHIP][google.ads.admanager.v1.LineItemTypeEnum.LineItemType.SPONSORSHIP], it represents the percentage of available impressions reserved. If the line item is of type [LineItemTypeEnum.LineItemType.BULK][google.ads.admanager.v1.LineItemTypeEnum.LineItemType.BULK] or [LineItemTypeEnum.LineItemType.PRICE_PRIORITY][google.ads.admanager.v1.LineItemTypeEnum.LineItemType.PRICE_PRIORITY], it represents the number of remaining impressions reserved. If the line item is of type [LineItemTypeEnum.LineItemType.NETWORK][google.ads.admanager.v1.LineItemTypeEnum.LineItemType.NETWORK] or [LineItemTypeEnum.LineItemType.HOUSE][google.ads.admanager.v1.LineItemTypeEnum.LineItemType.HOUSE], it represents the percentage of remaining impressions reserved. <p>If this is an impression cap goal, it represents the number of impressions or conversions that the line item will stop serving at if reached. For valid line item types, see [LineItem.impressions_cap][].
Declaration
public long Units { get; set; }
Property Value
| Type | Description |
|---|---|
| long |