public final class AdUnit
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 AdMob 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 |
|---|
AdUnit() |
| Modifier and Type | Method and Description |
|---|---|
AdUnit |
clone() |
String |
getAdFormat()
AdFormat of the ad unit.
|
List<String> |
getAdTypes()
Ad media type supported by this ad unit.
|
String |
getAdUnitId()
The externally visible ID of the ad unit which can be used to integrate with the AdMob SDK.
|
String |
getAppId()
The externally visible ID of the app this ad unit is associated with.
|
String |
getDisplayName()
The display name of the ad unit as shown in the AdMob UI, which is provided by the user.
|
String |
getName()
Resource name for this ad unit.
|
AdUnitRewardSettings |
getRewardSettings()
Optional.
|
AdUnit |
set(String fieldName,
Object value) |
AdUnit |
setAdFormat(String adFormat)
AdFormat of the ad unit.
|
AdUnit |
setAdTypes(List<String> adTypes)
Ad media type supported by this ad unit.
|
AdUnit |
setAdUnitId(String adUnitId)
The externally visible ID of the ad unit which can be used to integrate with the AdMob SDK.
|
AdUnit |
setAppId(String appId)
The externally visible ID of the app this ad unit is associated with.
|
AdUnit |
setDisplayName(String displayName)
The display name of the ad unit as shown in the AdMob UI, which is provided by the user.
|
AdUnit |
setName(String name)
Resource name for this ad unit.
|
AdUnit |
setRewardSettings(AdUnitRewardSettings rewardSettings)
Optional.
|
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 String getAdFormat()
null for nonepublic AdUnit setAdFormat(String adFormat)
adFormat - adFormat or null for nonepublic List<String> getAdTypes()
null for nonepublic AdUnit setAdTypes(List<String> adTypes)
adTypes - adTypes or null for nonepublic String getAdUnitId()
null for nonepublic AdUnit setAdUnitId(String adUnitId)
adUnitId - adUnitId or null for nonepublic String getAppId()
null for nonepublic AdUnit setAppId(String appId)
appId - appId or null for nonepublic String getDisplayName()
null for nonepublic AdUnit setDisplayName(String displayName)
displayName - displayName or null for nonepublic String getName()
null for nonepublic AdUnit setName(String name)
name - name or null for nonepublic AdUnitRewardSettings getRewardSettings()
null for nonepublic AdUnit setRewardSettings(AdUnitRewardSettings rewardSettings)
rewardSettings - rewardSettings or null for nonepublic AdUnit set(String fieldName, Object value)
set in class com.google.api.client.json.GenericJsonpublic AdUnit clone()
clone in class com.google.api.client.json.GenericJsonCopyright © 2011–2024 Google. All rights reserved.