Some or all of the information on this page might not apply to Trusted Cloud by S3NS.
Class ProgrammaticBuyer (0.27.0)
Note: Some or all of the information on this page might not apply
to Trusted Cloud. For a list of services that are available in
Trusted Cloud, see Services available for
Trusted Cloud .
Version 0.27.0keyboard_arrow_down
public final class ProgrammaticBuyer extends GeneratedMessageV3 implements ProgrammaticBuyerOrBuilder
Represents a programmatic buyer.
Protobuf type google.ads.admanager.v1.ProgrammaticBuyer
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
AGENCY_FIELD_NUMBER
public static final int AGENCY_FIELD_NUMBER
Field Value
Type
Description
int
BUYER_ACCOUNT_ID_FIELD_NUMBER
public static final int BUYER_ACCOUNT_ID_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
PARENT_ACCOUNT_ID_FIELD_NUMBER
public static final int PARENT_ACCOUNT_ID_FIELD_NUMBER
Field Value
Type
Description
int
PARTNER_CLIENT_ID_FIELD_NUMBER
public static final int PARTNER_CLIENT_ID_FIELD_NUMBER
Field Value
Type
Description
int
PREFERRED_DEALS_ENABLED_FIELD_NUMBER
public static final int PREFERRED_DEALS_ENABLED_FIELD_NUMBER
Field Value
Type
Description
int
PROGRAMMATIC_GUARANTEED_ENABLED_FIELD_NUMBER
public static final int PROGRAMMATIC_GUARANTEED_ENABLED_FIELD_NUMBER
Field Value
Type
Description
int
Static Methods
getDefaultInstance()
public static ProgrammaticBuyer getDefaultInstance ()
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
newBuilder()
public static ProgrammaticBuyer . Builder newBuilder ()
newBuilder(ProgrammaticBuyer prototype)
public static ProgrammaticBuyer . Builder newBuilder ( ProgrammaticBuyer prototype )
public static ProgrammaticBuyer parseDelimitedFrom ( InputStream input )
public static ProgrammaticBuyer parseDelimitedFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
parseFrom(byte[] data)
public static ProgrammaticBuyer parseFrom ( byte [] data )
Parameter
Name
Description
data
byte []
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static ProgrammaticBuyer parseFrom ( byte [] data , ExtensionRegistryLite extensionRegistry )
parseFrom(ByteString data)
public static ProgrammaticBuyer parseFrom ( ByteString data )
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static ProgrammaticBuyer parseFrom ( ByteString data , ExtensionRegistryLite extensionRegistry )
public static ProgrammaticBuyer parseFrom ( CodedInputStream input )
public static ProgrammaticBuyer parseFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
public static ProgrammaticBuyer parseFrom ( InputStream input )
public static ProgrammaticBuyer parseFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
parseFrom(ByteBuffer data)
public static ProgrammaticBuyer parseFrom ( ByteBuffer data )
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static ProgrammaticBuyer parseFrom ( ByteBuffer data , ExtensionRegistryLite extensionRegistry )
parser()
public static Parser<ProgrammaticBuyer> parser ()
Methods
equals(Object obj)
public boolean equals ( Object obj )
Parameter
Name
Description
obj
Object
Overrides
getAgency()
public boolean getAgency ()
Output only. Whether the buyer is an advertising agency.
optional bool agency = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type
Description
boolean
The agency.
getBuyerAccountId()
public long getBuyerAccountId ()
Output only. The buyer account ID of the buyer.
optional int64 buyer_account_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type
Description
long
The buyerAccountId.
getDefaultInstanceForType()
public ProgrammaticBuyer getDefaultInstanceForType ()
getDisplayName()
public String getDisplayName ()
Output only. The display name of the buyer.
optional string display_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type
Description
String
The displayName.
getDisplayNameBytes()
public ByteString getDisplayNameBytes ()
Output only. The display name of the buyer.
optional string display_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type
Description
ByteString
The bytes for displayName.
getName()
Identifier. The resource name of the ProgrammaticBuyer
.
Format:
networks/{network_code}/programmaticBuyers/{buyer_account_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 ProgrammaticBuyer
.
Format:
networks/{network_code}/programmaticBuyers/{buyer_account_id}
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
Returns
Type
Description
ByteString
The bytes for name.
getParentAccountId()
public long getParentAccountId ()
Output only. The ID of the programmatic buyer's sponsor. If the buyer has
no sponsor, this field will be -1.
optional int64 parent_account_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type
Description
long
The parentAccountId.
getParserForType()
public Parser<ProgrammaticBuyer> getParserForType ()
Overrides
getPartnerClientId()
public String getPartnerClientId ()
Output only. ID of the Display & Video 360 client buyer partner ID (if
Display & Video 360) or Authorized Buyers client buyer account ID.
optional string partner_client_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type
Description
String
The partnerClientId.
getPartnerClientIdBytes()
public ByteString getPartnerClientIdBytes ()
Output only. ID of the Display & Video 360 client buyer partner ID (if
Display & Video 360) or Authorized Buyers client buyer account ID.
optional string partner_client_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type
Description
ByteString
The bytes for partnerClientId.
getPreferredDealsEnabled()
public boolean getPreferredDealsEnabled ()
Output only. Whether the buyer is enabled for preferred deals.
optional bool preferred_deals_enabled = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type
Description
boolean
The preferredDealsEnabled.
getProgrammaticGuaranteedEnabled()
public boolean getProgrammaticGuaranteedEnabled ()
Output only. Whether the buyer is enabled for programmatic guaranteed
deals.
optional bool programmatic_guaranteed_enabled = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type
Description
boolean
The programmaticGuaranteedEnabled.
getSerializedSize()
public int getSerializedSize ()
Returns
Type
Description
int
Overrides
hasAgency()
public boolean hasAgency ()
Output only. Whether the buyer is an advertising agency.
optional bool agency = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type
Description
boolean
Whether the agency field is set.
hasBuyerAccountId()
public boolean hasBuyerAccountId ()
Output only. The buyer account ID of the buyer.
optional int64 buyer_account_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type
Description
boolean
Whether the buyerAccountId field is set.
hasDisplayName()
public boolean hasDisplayName ()
Output only. The display name of the buyer.
optional string display_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type
Description
boolean
Whether the displayName field is set.
hasParentAccountId()
public boolean hasParentAccountId ()
Output only. The ID of the programmatic buyer's sponsor. If the buyer has
no sponsor, this field will be -1.
optional int64 parent_account_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type
Description
boolean
Whether the parentAccountId field is set.
hasPartnerClientId()
public boolean hasPartnerClientId ()
Output only. ID of the Display & Video 360 client buyer partner ID (if
Display & Video 360) or Authorized Buyers client buyer account ID.
optional string partner_client_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type
Description
boolean
Whether the partnerClientId field is set.
hasPreferredDealsEnabled()
public boolean hasPreferredDealsEnabled ()
Output only. Whether the buyer is enabled for preferred deals.
optional bool preferred_deals_enabled = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type
Description
boolean
Whether the preferredDealsEnabled field is set.
hasProgrammaticGuaranteedEnabled()
public boolean hasProgrammaticGuaranteedEnabled ()
Output only. Whether the buyer is enabled for programmatic guaranteed
deals.
optional bool programmatic_guaranteed_enabled = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type
Description
boolean
Whether the programmaticGuaranteedEnabled field is set.
hashCode()
Returns
Type
Description
int
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
isInitialized()
public final boolean isInitialized ()
Overrides
newBuilderForType()
public ProgrammaticBuyer . Builder newBuilderForType ()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected ProgrammaticBuyer . Builder newBuilderForType ( GeneratedMessageV3 . BuilderParent parent )
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance ( GeneratedMessageV3 . UnusedPrivateParameter unused )
Returns
Type
Description
Object
Overrides
toBuilder()
public ProgrammaticBuyer . Builder toBuilder ()
writeTo(CodedOutputStream output)
public void writeTo ( CodedOutputStream output )
Overrides
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-08-07 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[],[]]