Send feedback
Class AdUnitParent (0.7.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 0.7.0 keyboard_arrow_down
public final class AdUnitParent extends GeneratedMessageV3 implements AdUnitParentOrBuilder
The summary of a parent AdUnit.
Protobuf type google.ads.admanager.v1.AdUnitParent
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
AD_UNIT_CODE_FIELD_NUMBER
public static final int AD_UNIT_CODE_FIELD_NUMBER
Field Value
Type
Description
int
DISPLAY_NAME_FIELD_NUMBER
public static final int DISPLAY_NAME_FIELD_NUMBER
Field Value
Type
Description
int
PARENT_AD_UNIT_FIELD_NUMBER
public static final int PARENT_AD_UNIT_FIELD_NUMBER
Field Value
Type
Description
int
Static Methods
getDefaultInstance()
public static AdUnitParent getDefaultInstance ()
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
newBuilder()
public static AdUnitParent . Builder newBuilder ()
newBuilder(AdUnitParent prototype)
public static AdUnitParent . Builder newBuilder ( AdUnitParent prototype )
public static AdUnitParent parseDelimitedFrom ( InputStream input )
public static AdUnitParent parseDelimitedFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
parseFrom(byte[] data)
public static AdUnitParent parseFrom ( byte [] data )
Parameter
Name
Description
data
byte []
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static AdUnitParent parseFrom ( byte [] data , ExtensionRegistryLite extensionRegistry )
parseFrom(ByteString data)
public static AdUnitParent parseFrom ( ByteString data )
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static AdUnitParent parseFrom ( ByteString data , ExtensionRegistryLite extensionRegistry )
public static AdUnitParent parseFrom ( CodedInputStream input )
public static AdUnitParent parseFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
public static AdUnitParent parseFrom ( InputStream input )
public static AdUnitParent parseFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
parseFrom(ByteBuffer data)
public static AdUnitParent parseFrom ( ByteBuffer data )
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static AdUnitParent parseFrom ( ByteBuffer data , ExtensionRegistryLite extensionRegistry )
parser()
public static Parser<AdUnitParent> parser ()
Methods
equals(Object obj)
public boolean equals ( Object obj )
Parameter
Name
Description
obj
Object
Overrides
getAdUnitCode()
public String getAdUnitCode ()
Output only. A string used to uniquely identify the ad unit for the
purposes of serving the ad.
string ad_unit_code = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type
Description
String
The adUnitCode.
getAdUnitCodeBytes()
public ByteString getAdUnitCodeBytes ()
Output only. A string used to uniquely identify the ad unit for the
purposes of serving the ad.
string ad_unit_code = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type
Description
ByteString
The bytes for adUnitCode.
getDefaultInstanceForType()
public AdUnitParent getDefaultInstanceForType ()
getDisplayName()
public String getDisplayName ()
Output only. The display name of the parent AdUnit.
string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type
Description
String
The displayName.
getDisplayNameBytes()
public ByteString getDisplayNameBytes ()
Output only. The display name of the parent AdUnit.
string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type
Description
ByteString
The bytes for displayName.
getParentAdUnit()
public String getParentAdUnit ()
Output only. The parent of the current AdUnit
Format: networks/{network_code}/adUnits/{ad_unit_id}
string parent_ad_unit = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
Returns
Type
Description
String
The parentAdUnit.
getParentAdUnitBytes()
public ByteString getParentAdUnitBytes ()
Output only. The parent of the current AdUnit
Format: networks/{network_code}/adUnits/{ad_unit_id}
string parent_ad_unit = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
Returns
Type
Description
ByteString
The bytes for parentAdUnit.
getParserForType()
public Parser<AdUnitParent> getParserForType ()
Overrides
getSerializedSize()
public int getSerializedSize ()
Returns
Type
Description
int
Overrides
hashCode()
Returns
Type
Description
int
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
isInitialized()
public final boolean isInitialized ()
Overrides
newBuilderForType()
public AdUnitParent . Builder newBuilderForType ()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected AdUnitParent . Builder newBuilderForType ( GeneratedMessageV3 . BuilderParent parent )
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance ( GeneratedMessageV3 . UnusedPrivateParameter unused )
Returns
Type
Description
Object
Overrides
toBuilder()
public AdUnitParent . Builder toBuilder ()
writeTo(CodedOutputStream output)
public void writeTo ( CodedOutputStream output )
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-03-21 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-21 UTC."],[[["This webpage provides documentation for the `AdUnitParent` class in version 0.7.0 of the Google Ad Manager Java library."],["`AdUnitParent` is a class that extends `GeneratedMessageV3` and is used to represent the summary of a parent AdUnit, and it implements `AdUnitParentOrBuilder`."],["The page lists available versions of the AdUnitParent, starting from the latest version 0.19.0 and going down to 0.1.0, which are accessible through individual links."],["The `AdUnitParent` class contains methods for accessing the ad unit code, display name, and the parent ad unit, and it has static methods to get its descriptor, parse data, and create new instances."],["This class has three static fields named `AD_UNIT_CODE_FIELD_NUMBER`, `DISPLAY_NAME_FIELD_NUMBER`, `PARENT_AD_UNIT_FIELD_NUMBER` that are of type integer."]]],[]]