public final class DayPartTargeting
extends com.google.api.client.json.GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the DCM/DFA Reporting And Trafficking API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
com.google.api.client.util.GenericData.Flags| Constructor and Description |
|---|
DayPartTargeting() |
| Modifier and Type | Method and Description |
|---|---|
DayPartTargeting |
clone() |
java.util.List<java.lang.String> |
getDaysOfWeek()
Days of the week when the ad will serve.
|
java.util.List<java.lang.Integer> |
getHoursOfDay()
Hours of the day when the ad will serve, where 0 is midnight to 1 AM and 23 is 11 PM to
midnight.
|
java.lang.Boolean |
getUserLocalTime()
Whether or not to use the user's local time.
|
DayPartTargeting |
set(java.lang.String fieldName,
java.lang.Object value) |
DayPartTargeting |
setDaysOfWeek(java.util.List<java.lang.String> daysOfWeek)
Days of the week when the ad will serve.
|
DayPartTargeting |
setHoursOfDay(java.util.List<java.lang.Integer> hoursOfDay)
Hours of the day when the ad will serve, where 0 is midnight to 1 AM and 23 is 11 PM to
midnight.
|
DayPartTargeting |
setUserLocalTime(java.lang.Boolean userLocalTime)
Whether or not to use the user's local time.
|
getFactory, setFactory, toPrettyString, toStringentrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeyspublic java.util.List<java.lang.String> getDaysOfWeek()
null for nonepublic DayPartTargeting setDaysOfWeek(java.util.List<java.lang.String> daysOfWeek)
daysOfWeek - daysOfWeek or null for nonepublic java.util.List<java.lang.Integer> getHoursOfDay()
null for nonepublic DayPartTargeting setHoursOfDay(java.util.List<java.lang.Integer> hoursOfDay)
hoursOfDay - hoursOfDay or null for nonepublic java.lang.Boolean getUserLocalTime()
null for nonepublic DayPartTargeting setUserLocalTime(java.lang.Boolean userLocalTime)
userLocalTime - userLocalTime or null for nonepublic DayPartTargeting set(java.lang.String fieldName, java.lang.Object value)
set in class com.google.api.client.json.GenericJsonpublic DayPartTargeting clone()
clone in class com.google.api.client.json.GenericJson