Class AdUnitName (0.11.0)

public class AdUnitName implements ResourceName

Inheritance

Object > AdUnitName

Implements

com.google.api.resourcenames.ResourceName

Static Methods

format(String networkCode, String adUnit)

public static String format(String networkCode, String adUnit)
Parameters
Name Description
networkCode String
adUnit String
Returns
Type Description
String

isParsableFrom(String formattedString)

public static boolean isParsableFrom(String formattedString)
Parameter
Name Description
formattedString String
Returns
Type Description
boolean

newBuilder()

public static AdUnitName.Builder newBuilder()
Returns
Type Description
AdUnitName.Builder

of(String networkCode, String adUnit)

public static AdUnitName of(String networkCode, String adUnit)
Parameters
Name Description
networkCode String
adUnit String
Returns
Type Description
AdUnitName

parse(String formattedString)

public static AdUnitName parse(String formattedString)
Parameter
Name Description
formattedString String
Returns
Type Description
AdUnitName

parseList(List<String> formattedStrings)

public static List<AdUnitName> parseList(List<String> formattedStrings)
Parameter
Name Description
formattedStrings List<String>
Returns
Type Description
List<AdUnitName>

toStringList(List<AdUnitName> values)

public static List<String> toStringList(List<AdUnitName> values)
Parameter
Name Description
values List<AdUnitName>
Returns
Type Description
List<String>

Constructors

AdUnitName() (deprecated)

protected AdUnitName()

Methods

equals(Object o)

public boolean equals(Object o)
Parameter
Name Description
o Object
Returns
Type Description
boolean
Overrides

getAdUnit()

public String getAdUnit()
Returns
Type Description
String

getFieldValue(String fieldName)

public String getFieldValue(String fieldName)
Parameter
Name Description
fieldName String
Returns
Type Description
String

getFieldValuesMap()

public Map<String,String> getFieldValuesMap()
Returns
Type Description
Map<String,String>

getNetworkCode()

public String getNetworkCode()
Returns
Type Description
String

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

toBuilder()

public AdUnitName.Builder toBuilder()
Returns
Type Description
AdUnitName.Builder

toString()

public String toString()
Returns
Type Description
String
Overrides