
target.apidocs.com.google.api.services.adsensehost.model.AdUnits.html Maven / Gradle / Ivy
AdUnits (AdSense Host API v4.1-rev20200930-2.0.0)
com.google.api.services.adsensehost.model
Class AdUnits
- java.lang.Object
-
- java.util.AbstractMap<String,Object>
-
- com.google.api.client.util.GenericData
-
- com.google.api.client.json.GenericJson
-
- com.google.api.services.adsensehost.model.AdUnits
-
public final class AdUnits
extends com.google.api.client.json.GenericJson
Model definition for AdUnits.
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 AdSense Host API. For a detailed explanation see:
https://developers.google.com/api-client-library/java/google-http-java-client/json
- Author:
- Google, Inc.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.api.client.util.GenericData
com.google.api.client.util.GenericData.Flags
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
-
Constructor Summary
Constructors
Constructor and Description
AdUnits()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
AdUnits
clone()
String
getEtag()
ETag of this response for caching purposes.
List<AdUnit>
getItems()
The ad units returned in this list response.
String
getKind()
Kind of list this is, in this case adsensehost#adUnits.
String
getNextPageToken()
Continuation token used to page through ad units.
AdUnits
set(String fieldName,
Object value)
AdUnits
setEtag(String etag)
ETag of this response for caching purposes.
AdUnits
setItems(List<AdUnit> items)
The ad units returned in this list response.
AdUnits
setKind(String kind)
Kind of list this is, in this case adsensehost#adUnits.
AdUnits
setNextPageToken(String nextPageToken)
Continuation token used to page through ad units.
-
Methods inherited from class com.google.api.client.json.GenericJson
getFactory, setFactory, toPrettyString, toString
-
Methods inherited from class com.google.api.client.util.GenericData
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
-
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, isEmpty, keySet, size, values
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
Method Detail
-
getEtag
public String getEtag()
ETag of this response for caching purposes.
- Returns:
- value or
null
for none
-
setEtag
public AdUnits setEtag(String etag)
ETag of this response for caching purposes.
- Parameters:
etag
- etag or null
for none
-
getItems
public List<AdUnit> getItems()
The ad units returned in this list response.
- Returns:
- value or
null
for none
-
setItems
public AdUnits setItems(List<AdUnit> items)
The ad units returned in this list response.
- Parameters:
items
- items or null
for none
-
getKind
public String getKind()
Kind of list this is, in this case adsensehost#adUnits.
- Returns:
- value or
null
for none
-
setKind
public AdUnits setKind(String kind)
Kind of list this is, in this case adsensehost#adUnits.
- Parameters:
kind
- kind or null
for none
-
getNextPageToken
public String getNextPageToken()
Continuation token used to page through ad units. To retrieve the next page of results, set the
next request's "pageToken" value to this.
- Returns:
- value or
null
for none
-
setNextPageToken
public AdUnits setNextPageToken(String nextPageToken)
Continuation token used to page through ad units. To retrieve the next page of results, set the
next request's "pageToken" value to this.
- Parameters:
nextPageToken
- nextPageToken or null
for none
-
set
public AdUnits set(String fieldName,
Object value)
- Overrides:
set
in class com.google.api.client.json.GenericJson
-
clone
public AdUnits clone()
- Overrides:
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2024 Google. All rights reserved.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy