public final class FrequencyCap
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 Display & Video 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.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
FrequencyCap() |
| Modifier and Type | Method and Description |
|---|---|
FrequencyCap |
clone() |
Integer |
getMaxImpressions()
The maximum number of times a user may be shown the same ad during this period.
|
Integer |
getMaxViews()
Optional.
|
String |
getTimeUnit()
The time unit in which the frequency cap will be applied.
|
Integer |
getTimeUnitCount()
The number of time_unit the frequency cap will last.
|
Boolean |
getUnlimited()
Whether unlimited frequency capping is applied.
|
FrequencyCap |
set(String fieldName,
Object value) |
FrequencyCap |
setMaxImpressions(Integer maxImpressions)
The maximum number of times a user may be shown the same ad during this period.
|
FrequencyCap |
setMaxViews(Integer maxViews)
Optional.
|
FrequencyCap |
setTimeUnit(String timeUnit)
The time unit in which the frequency cap will be applied.
|
FrequencyCap |
setTimeUnitCount(Integer timeUnitCount)
The number of time_unit the frequency cap will last.
|
FrequencyCap |
setUnlimited(Boolean unlimited)
Whether unlimited frequency capping is applied.
|
getFactory, setFactory, toPrettyString, toStringentrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic Integer getMaxImpressions()
null for nonepublic FrequencyCap setMaxImpressions(Integer maxImpressions)
maxImpressions - maxImpressions or null for nonepublic Integer getMaxViews()
null for nonepublic FrequencyCap setMaxViews(Integer maxViews)
maxViews - maxViews or null for nonepublic String getTimeUnit()
null for nonepublic FrequencyCap setTimeUnit(String timeUnit)
timeUnit - timeUnit or null for nonepublic Integer getTimeUnitCount()
null for nonepublic FrequencyCap setTimeUnitCount(Integer timeUnitCount)
timeUnitCount - timeUnitCount or null for nonepublic Boolean getUnlimited()
null for nonepublic FrequencyCap setUnlimited(Boolean unlimited)
unlimited - unlimited or null for nonepublic FrequencyCap set(String fieldName, Object value)
set in class com.google.api.client.json.GenericJsonpublic FrequencyCap clone()
clone in class com.google.api.client.json.GenericJsonCopyright © 2011–2026 Google. All rights reserved.