public enum UnitType extends Enum<UnitType>
Java class for UnitType.
The following schema fragment specifies the expected content contained within this class.
<simpleType name="UnitType">
<restriction base="{http://www.w3.org/2001/XMLSchema}string">
<enumeration value="IMPRESSIONS"/>
<enumeration value="CLICKS"/>
<enumeration value="CLICK_THROUGH_CPA_CONVERSIONS"/>
<enumeration value="VIEW_THROUGH_CPA_CONVERSIONS"/>
<enumeration value="TOTAL_CPA_CONVERSIONS"/>
<enumeration value="VIEWABLE_IMPRESSIONS"/>
<enumeration value="UNKNOWN"/>
</restriction>
</simpleType>
| Enum Constant and Description |
|---|
CLICK_THROUGH_CPA_CONVERSIONS
The number of click-through Cost-Per-Action (CPA) conversions from creatives
associated with the line item.
|
CLICKS
The number of clicks reported by creatives associated with the line item.
|
IMPRESSIONS
The number of impressions served by creatives associated with the line
item.
|
TOTAL_CPA_CONVERSIONS
The number of total Cost-Per-Action (CPA) conversions from creatives
associated with the line item.
|
UNKNOWN
The value returned if the actual value is not exposed by the requested API version.
|
VIEW_THROUGH_CPA_CONVERSIONS
The number of view-through Cost-Per-Action (CPA) conversions from creatives
associated with the line item.
|
VIEWABLE_IMPRESSIONS
The number of viewable impressions reported by creatives associated with the line item.
|
| Modifier and Type | Method and Description |
|---|---|
static UnitType |
fromValue(String v) |
String |
value() |
static UnitType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static UnitType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final UnitType IMPRESSIONS
LineItemType support this UnitType.public static final UnitType CLICKS
LineItemSummary.lineItemType must be
LineItemType.STANDARD, LineItemType.BULK or
LineItemType.PRICE_PRIORITY.public static final UnitType CLICK_THROUGH_CPA_CONVERSIONS
LineItemSummary.costType must be CostType.CPA.public static final UnitType VIEW_THROUGH_CPA_CONVERSIONS
LineItemSummary.costType must be CostType.CPA.public static final UnitType TOTAL_CPA_CONVERSIONS
LineItemSummary.costType must be CostType.CPA.public static final UnitType VIEWABLE_IMPRESSIONS
LineItemSummary.lineItemType must be LineItemType.STANDARD.public static final UnitType UNKNOWN
public static UnitType[] values()
for (UnitType c : UnitType.values()) System.out.println(c);
public static UnitType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic String value()
Copyright © 2018. All Rights Reserved.