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 Campaign Manager 360 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
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
DayPartTargeting() |
Modifier and Type | Method and Description |
---|---|
DayPartTargeting |
clone() |
List<String> |
getDaysOfWeek()
Days of the week when the ad will serve.
|
List<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.
|
Boolean |
getUserLocalTime()
Whether or not to use the user's local time.
|
DayPartTargeting |
set(String fieldName,
Object value) |
DayPartTargeting |
setDaysOfWeek(List<String> daysOfWeek)
Days of the week when the ad will serve.
|
DayPartTargeting |
setHoursOfDay(List<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(Boolean userLocalTime)
Whether or not to use the user's local time.
|
getFactory, setFactory, toPrettyString, toString
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, isEmpty, keySet, size, values
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public List<String> getDaysOfWeek()
null
for nonepublic DayPartTargeting setDaysOfWeek(List<String> daysOfWeek)
daysOfWeek
- daysOfWeek or null
for nonepublic List<Integer> getHoursOfDay()
null
for nonepublic DayPartTargeting setHoursOfDay(List<Integer> hoursOfDay)
hoursOfDay
- hoursOfDay or null
for nonepublic Boolean getUserLocalTime()
null
for nonepublic DayPartTargeting setUserLocalTime(Boolean userLocalTime)
userLocalTime
- userLocalTime or null
for nonepublic DayPartTargeting set(String fieldName, Object value)
set
in class com.google.api.client.json.GenericJson
public DayPartTargeting clone()
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2025 Google. All rights reserved.