Interface GoalOrBuilder (0.7.0)

public interface GoalOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getGoalType()

public abstract GoalTypeEnum.GoalType getGoalType()

The type of the goal for the LineItem. It defines the period over which the goal should be reached.

.google.ads.admanager.v1.GoalTypeEnum.GoalType goal_type = 1;

Returns
Type Description
GoalTypeEnum.GoalType

The goalType.

getGoalTypeValue()

public abstract int getGoalTypeValue()

The type of the goal for the LineItem. It defines the period over which the goal should be reached.

.google.ads.admanager.v1.GoalTypeEnum.GoalType goal_type = 1;

Returns
Type Description
int

The enum numeric value on the wire for goalType.

getUnitType()

public abstract UnitTypeEnum.UnitType getUnitType()

The type of the goal unit for the LineItem.

.google.ads.admanager.v1.UnitTypeEnum.UnitType unit_type = 2;

Returns
Type Description
UnitTypeEnum.UnitType

The unitType.

getUnitTypeValue()

public abstract int getUnitTypeValue()

The type of the goal unit for the LineItem.

.google.ads.admanager.v1.UnitTypeEnum.UnitType unit_type = 2;

Returns
Type Description
int

The enum numeric value on the wire for unitType.

getUnits()

public abstract long getUnits()

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, it represents the percentage of available impressions reserved. If the line item is of type LineItemTypeEnum.LineItemType.BULK or LineItemTypeEnum.LineItemType.PRICE_PRIORITY, it represents the number of remaining impressions reserved. If the line item is of type LineItemTypeEnum.LineItemType.NETWORK or 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][].

int64 units = 3;

Returns
Type Description
long

The units.