public enum TimeZoneType extends Enum<TimeZoneType>
Java class for TimeZoneType.
The following schema fragment specifies the expected content contained within this class.
<simpleType name="TimeZoneType">
<restriction base="{http://www.w3.org/2001/XMLSchema}string">
<enumeration value="UNKNOWN"/>
<enumeration value="PROPOSAL_LOCAL"/>
<enumeration value="PUBLISHER"/>
<enumeration value="AD_EXCHANGE"/>
</restriction>
</simpleType>
| Enum Constant and Description |
|---|
AD_EXCHANGE
Use the Ad Exchange time zone (Pacific Time Zone).
|
PROPOSAL_LOCAL
Use the proposal or proposal line item time zone.
|
PUBLISHER
Use the publisher's time zone.
|
UNKNOWN
The value returned if the actual value is not exposed by the requested API version.
|
| Modifier and Type | Method and Description |
|---|---|
static TimeZoneType |
fromValue(String v) |
String |
value() |
static TimeZoneType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TimeZoneType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TimeZoneType UNKNOWN
public static final TimeZoneType PROPOSAL_LOCAL
For example, if
com.google.ads.publisher.api.service.reports.Column#SALES_CONTRACT_CONTRACTED_CLICKS is
included in a report with this flag set to true, then it will be calculated using the
ProposalLineItem.timeZoneId of the proposal line item the metric is for. If
com.google.ads.publisher.api.service.reports.DimensionAttribute#PROPOSAL_CREATION_DATE_TIME
is included in a report with this flag set to true, then a proposal's creation date
time will be formatted in Proposal.timeZoneId of that proposal.
public static final TimeZoneType PUBLISHER
Note: if your report includes "time unit" dimensions, only the DFP "time unit" dimensions are compatible with this timezone, e.g.:
com.google.ads.publisher.api.service.reports.Dimension.DATE
com.google.ads.publisher.api.service.reports.Dimension.WEEK
com.google.ads.publisher.api.service.reports.Dimension.MONTH_AND_YEAR
public static final TimeZoneType AD_EXCHANGE
Note: if your report includes "time unit" dimensions, only the Ad Exchange "time unit" dimensions are compatible with this timezone, e.g.:
com.google.ads.publisher.api.service.reports.Dimension.AD_EXCHANGE_DATE
com.google.ads.publisher.api.service.reports.Dimension.AD_EXCHANGE_WEEK
com.google.ads.publisher.api.service.reports.Dimension.AD_EXCHANGE_MONTH
public static TimeZoneType[] values()
for (TimeZoneType c : TimeZoneType.values()) System.out.println(c);
public static TimeZoneType 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()
public static TimeZoneType fromValue(String v)
Copyright © 2018. All Rights Reserved.