Send feedback
Class Placement (0.8.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 0.8.0 keyboard_arrow_down
public final class Placement extends GeneratedMessageV3 implements PlacementOrBuilder
The Placement
resource.
Protobuf type google.ads.admanager.v1.Placement
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
DESCRIPTION_FIELD_NUMBER
public static final int DESCRIPTION_FIELD_NUMBER
Field Value
Type
Description
int
DISPLAY_NAME_FIELD_NUMBER
public static final int DISPLAY_NAME_FIELD_NUMBER
Field Value
Type
Description
int
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
Field Value
Type
Description
int
PLACEMENT_CODE_FIELD_NUMBER
public static final int PLACEMENT_CODE_FIELD_NUMBER
Field Value
Type
Description
int
PLACEMENT_ID_FIELD_NUMBER
public static final int PLACEMENT_ID_FIELD_NUMBER
Field Value
Type
Description
int
STATUS_FIELD_NUMBER
public static final int STATUS_FIELD_NUMBER
Field Value
Type
Description
int
TARGETED_AD_UNITS_FIELD_NUMBER
public static final int TARGETED_AD_UNITS_FIELD_NUMBER
Field Value
Type
Description
int
UPDATE_TIME_FIELD_NUMBER
public static final int UPDATE_TIME_FIELD_NUMBER
Field Value
Type
Description
int
Static Methods
getDefaultInstance()
public static Placement getDefaultInstance ()
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
newBuilder()
public static Placement . Builder newBuilder ()
newBuilder(Placement prototype)
public static Placement . Builder newBuilder ( Placement prototype )
Parameter
Name
Description
prototype
Placement
public static Placement parseDelimitedFrom ( InputStream input )
public static Placement parseDelimitedFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
parseFrom(byte[] data)
public static Placement parseFrom ( byte [] data )
Parameter
Name
Description
data
byte []
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Placement parseFrom ( byte [] data , ExtensionRegistryLite extensionRegistry )
parseFrom(ByteString data)
public static Placement parseFrom ( ByteString data )
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Placement parseFrom ( ByteString data , ExtensionRegistryLite extensionRegistry )
public static Placement parseFrom ( CodedInputStream input )
public static Placement parseFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
public static Placement parseFrom ( InputStream input )
public static Placement parseFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
parseFrom(ByteBuffer data)
public static Placement parseFrom ( ByteBuffer data )
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Placement parseFrom ( ByteBuffer data , ExtensionRegistryLite extensionRegistry )
parser()
public static Parser<Placement> parser ()
Methods
equals(Object obj)
public boolean equals ( Object obj )
Parameter
Name
Description
obj
Object
Overrides
getDefaultInstanceForType()
public Placement getDefaultInstanceForType ()
getDescription()
public String getDescription ()
Optional. A description of the Placement. This value is optional and its
maximum length is 65,535 characters.
string description = 4 [(.google.api.field_behavior) = OPTIONAL];
Returns
Type
Description
String
The description.
getDescriptionBytes()
public ByteString getDescriptionBytes ()
Optional. A description of the Placement. This value is optional and its
maximum length is 65,535 characters.
string description = 4 [(.google.api.field_behavior) = OPTIONAL];
Returns
Type
Description
ByteString
The bytes for description.
getDisplayName()
public String getDisplayName ()
Required. The display name of the placement. Its maximum length is 255
characters.
string display_name = 3 [(.google.api.field_behavior) = REQUIRED];
Returns
Type
Description
String
The displayName.
getDisplayNameBytes()
public ByteString getDisplayNameBytes ()
Required. The display name of the placement. Its maximum length is 255
characters.
string display_name = 3 [(.google.api.field_behavior) = REQUIRED];
Returns
Type
Description
ByteString
The bytes for displayName.
getName()
Identifier. The resource name of the Placement
.
Format: networks/{network_code}/placements/{placement_id}
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
Returns
Type
Description
String
The name.
getNameBytes()
public ByteString getNameBytes ()
Identifier. The resource name of the Placement
.
Format: networks/{network_code}/placements/{placement_id}
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
Returns
Type
Description
ByteString
The bytes for name.
getParserForType()
public Parser<Placement> getParserForType ()
Overrides
getPlacementCode()
public String getPlacementCode ()
Output only. A string used to uniquely identify the Placement for purposes
of serving the ad. This attribute is read-only and is assigned by Google
when a placement is created.
string placement_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type
Description
String
The placementCode.
getPlacementCodeBytes()
public ByteString getPlacementCodeBytes ()
Output only. A string used to uniquely identify the Placement for purposes
of serving the ad. This attribute is read-only and is assigned by Google
when a placement is created.
string placement_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type
Description
ByteString
The bytes for placementCode.
getPlacementId()
public long getPlacementId ()
Output only. Placement
ID.
int64 placement_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type
Description
long
The placementId.
getSerializedSize()
public int getSerializedSize ()
Returns
Type
Description
int
Overrides
getStatus()
public PlacementStatusEnum . PlacementStatus getStatus ()
Output only. The status of the Placement. This attribute is read-only.
.google.ads.admanager.v1.PlacementStatusEnum.PlacementStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
getStatusValue()
public int getStatusValue ()
Output only. The status of the Placement. This attribute is read-only.
.google.ads.admanager.v1.PlacementStatusEnum.PlacementStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type
Description
int
The enum numeric value on the wire for status.
getTargetedAdUnits(int index)
public String getTargetedAdUnits ( int index )
Optional. The resource names of AdUnits that constitute the Placement.
Format: "networks/{network_code}/adUnits/{ad_unit_id}"
repeated string targeted_ad_units = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
Parameter
Name
Description
index
int
The index of the element to return.
Returns
Type
Description
String
The targetedAdUnits at the given index.
getTargetedAdUnitsBytes(int index)
public ByteString getTargetedAdUnitsBytes ( int index )
Optional. The resource names of AdUnits that constitute the Placement.
Format: "networks/{network_code}/adUnits/{ad_unit_id}"
repeated string targeted_ad_units = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
Parameter
Name
Description
index
int
The index of the value to return.
Returns
Type
Description
ByteString
The bytes of the targetedAdUnits at the given index.
getTargetedAdUnitsCount()
public int getTargetedAdUnitsCount ()
Optional. The resource names of AdUnits that constitute the Placement.
Format: "networks/{network_code}/adUnits/{ad_unit_id}"
repeated string targeted_ad_units = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
Returns
Type
Description
int
The count of targetedAdUnits.
getTargetedAdUnitsList()
public ProtocolStringList getTargetedAdUnitsList ()
Optional. The resource names of AdUnits that constitute the Placement.
Format: "networks/{network_code}/adUnits/{ad_unit_id}"
repeated string targeted_ad_units = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
getUpdateTime()
public Timestamp getUpdateTime ()
Output only. The instant this Placement was last modified.
.google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type
Description
Timestamp
The updateTime.
getUpdateTimeOrBuilder()
public TimestampOrBuilder getUpdateTimeOrBuilder ()
Output only. The instant this Placement was last modified.
.google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
hasUpdateTime()
public boolean hasUpdateTime ()
Output only. The instant this Placement was last modified.
.google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type
Description
boolean
Whether the updateTime field is set.
hashCode()
Returns
Type
Description
int
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
isInitialized()
public final boolean isInitialized ()
Overrides
newBuilderForType()
public Placement . Builder newBuilderForType ()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Placement . Builder newBuilderForType ( GeneratedMessageV3 . BuilderParent parent )
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance ( GeneratedMessageV3 . UnusedPrivateParameter unused )
Returns
Type
Description
Object
Overrides
toBuilder()
public Placement . 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."],[[["The webpage provides documentation for the `Placement` resource within the Google Ad Manager API, specifically for the Java version 0.8.0."],["The `Placement` class extends `GeneratedMessageV3` and implements `PlacementOrBuilder`, offering methods for managing ad placements in the network."],["The latest version available for the `Placement` resource is 0.19.0, while the current page documentation is for an older version."],["The `Placement` object includes details like name, display name, description, placement ID, code, status, and targeted ad units, alongside output-only fields like placement ID, code, status, and last modified time."],["The documentation provides a list of versions for the `Placement` resource, ranging from 0.1.0 to the latest 0.19.0, with associated links for each."]]],[]]