public enum AdSenseSettingsAdType extends Enum<AdSenseSettingsAdType>
Java class for AdSenseSettings.AdType.
The following schema fragment specifies the expected content contained within this class.
<simpleType name="AdSenseSettings.AdType">
<restriction base="{http://www.w3.org/2001/XMLSchema}string">
<enumeration value="TEXT"/>
<enumeration value="IMAGE"/>
<enumeration value="TEXT_AND_IMAGE"/>
</restriction>
</simpleType>
| Enum Constant and Description |
|---|
IMAGE
Allows image-only ads.
|
TEXT
Allows text-only ads.
|
TEXT_AND_IMAGE
Allows both text and image ads.
|
| Modifier and Type | Method and Description |
|---|---|
static AdSenseSettingsAdType |
fromValue(String v) |
String |
value() |
static AdSenseSettingsAdType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AdSenseSettingsAdType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AdSenseSettingsAdType TEXT
public static final AdSenseSettingsAdType IMAGE
public static final AdSenseSettingsAdType TEXT_AND_IMAGE
public static AdSenseSettingsAdType[] values()
for (AdSenseSettingsAdType c : AdSenseSettingsAdType.values()) System.out.println(c);
public static AdSenseSettingsAdType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic String value()
public static AdSenseSettingsAdType fromValue(String v)
Copyright © 2018. All Rights Reserved.