public
final
class
AdUnit
extends
GeneratedMessageV3
implements
AdUnitOrBuilder
The AdUnit resource.
Protobuf type google.ads.admanager.v1.AdUnit
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > AdUnitImplements
AdUnitOrBuilderStatic Fields
AD_UNIT_CODE_FIELD_NUMBER
public
static
final
int
AD_UNIT_CODE_FIELD_NUMBER
AD_UNIT_ID_FIELD_NUMBER
public
static
final
int
AD_UNIT_ID_FIELD_NUMBER
AD_UNIT_SIZES_FIELD_NUMBER
public
static
final
int
AD_UNIT_SIZES_FIELD_NUMBER
APPLIED_ADSENSE_ENABLED_FIELD_NUMBER
public
static
final
int
APPLIED_ADSENSE_ENABLED_FIELD_NUMBER
APPLIED_LABELS_FIELD_NUMBER
public
static
final
int
APPLIED_LABELS_FIELD_NUMBER
APPLIED_LABEL_FREQUENCY_CAPS_FIELD_NUMBER
public
static
final
int
APPLIED_LABEL_FREQUENCY_CAPS_FIELD_NUMBER
APPLIED_TEAMS_FIELD_NUMBER
public
static
final
int
APPLIED_TEAMS_FIELD_NUMBER
CTV_APPLICATION_ID_FIELD_NUMBER
public
static
final
int
CTV_APPLICATION_ID_FIELD_NUMBER
DESCRIPTION_FIELD_NUMBER
public
static
final
int
DESCRIPTION_FIELD_NUMBER
DISPLAY_NAME_FIELD_NUMBER
public
static
final
int
DISPLAY_NAME_FIELD_NUMBER
EFFECTIVE_ADSENSE_ENABLED_FIELD_NUMBER
public
static
final
int
EFFECTIVE_ADSENSE_ENABLED_FIELD_NUMBER
EFFECTIVE_APPLIED_LABELS_FIELD_NUMBER
public
static
final
int
EFFECTIVE_APPLIED_LABELS_FIELD_NUMBER
EFFECTIVE_LABEL_FREQUENCY_CAPS_FIELD_NUMBER
public
static
final
int
EFFECTIVE_LABEL_FREQUENCY_CAPS_FIELD_NUMBER
EXPLICITLY_TARGETED_FIELD_NUMBER
public
static
final
int
EXPLICITLY_TARGETED_FIELD_NUMBER
EXTERNAL_SET_TOP_BOX_CHANNEL_ID_FIELD_NUMBER
public
static
final
int
EXTERNAL_SET_TOP_BOX_CHANNEL_ID_FIELD_NUMBER
HAS_CHILDREN_FIELD_NUMBER
public
static
final
int
HAS_CHILDREN_FIELD_NUMBER
NAME_FIELD_NUMBER
public
static
final
int
NAME_FIELD_NUMBER
PARENT_AD_UNIT_FIELD_NUMBER
public
static
final
int
PARENT_AD_UNIT_FIELD_NUMBER
PARENT_PATH_FIELD_NUMBER
public
static
final
int
PARENT_PATH_FIELD_NUMBER
REFRESH_DELAY_FIELD_NUMBER
public
static
final
int
REFRESH_DELAY_FIELD_NUMBER
SMART_SIZE_MODE_FIELD_NUMBER
public
static
final
int
SMART_SIZE_MODE_FIELD_NUMBER
STATUS_FIELD_NUMBER
public
static
final
int
STATUS_FIELD_NUMBER
TARGET_WINDOW_FIELD_NUMBER
public
static
final
int
TARGET_WINDOW_FIELD_NUMBER
TEAMS_FIELD_NUMBER
public
static
final
int
TEAMS_FIELD_NUMBER
UPDATE_TIME_FIELD_NUMBER
public
static
final
int
UPDATE_TIME_FIELD_NUMBER
Static Methods
getDefaultInstance()
public
static
AdUnit
getDefaultInstance
()
getDescriptor()
public
static
final
Descriptors
.
Descriptor
getDescriptor
()
newBuilder()
public
static
AdUnit
.
Builder
newBuilder
()
newBuilder(AdUnit prototype)
public
static
AdUnit
.
Builder
newBuilder
(
AdUnit
prototype
)
parseDelimitedFrom(InputStream input)
public
static
AdUnit
parseDelimitedFrom
(
InputStream
input
)
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public
static
AdUnit
parseDelimitedFrom
(
InputStream
input
,
ExtensionRegistryLite
extensionRegistry
)
parseFrom(byte[] data)
public
static
AdUnit
parseFrom
(
byte
[]
data
)
data
byte
[]
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public
static
AdUnit
parseFrom
(
byte
[]
data
,
ExtensionRegistryLite
extensionRegistry
)
parseFrom(ByteString data)
public
static
AdUnit
parseFrom
(
ByteString
data
)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public
static
AdUnit
parseFrom
(
ByteString
data
,
ExtensionRegistryLite
extensionRegistry
)
parseFrom(CodedInputStream input)
public
static
AdUnit
parseFrom
(
CodedInputStream
input
)
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public
static
AdUnit
parseFrom
(
CodedInputStream
input
,
ExtensionRegistryLite
extensionRegistry
)
parseFrom(InputStream input)
public
static
AdUnit
parseFrom
(
InputStream
input
)
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public
static
AdUnit
parseFrom
(
InputStream
input
,
ExtensionRegistryLite
extensionRegistry
)
parseFrom(ByteBuffer data)
public
static
AdUnit
parseFrom
(
ByteBuffer
data
)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public
static
AdUnit
parseFrom
(
ByteBuffer
data
,
ExtensionRegistryLite
extensionRegistry
)
parser()
public
static
Parser<AdUnit>
parser
()
Methods
equals(Object obj)
public
boolean
equals
(
Object
obj
)
getAdUnitCode()
public
String
getAdUnitCode
()
Immutable. A string used to uniquely identify the ad unit for the purposes of serving the ad. This attribute is optional and can be set during ad unit creation. If it is not provided, it will be assigned by Google based off of the ad unit ID.
string ad_unit_code = 2 [(.google.api.field_behavior) = IMMUTABLE];
getAdUnitCodeBytes()
public
ByteString
getAdUnitCodeBytes
()
Immutable. A string used to uniquely identify the ad unit for the purposes of serving the ad. This attribute is optional and can be set during ad unit creation. If it is not provided, it will be assigned by Google based off of the ad unit ID.
string ad_unit_code = 2 [(.google.api.field_behavior) = IMMUTABLE];
getAdUnitId()
public
long
getAdUnitId
()
Output only. AdUnit ID.
int64 ad_unit_id = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
getAdUnitSizes(int index)
public
AdUnitSize
getAdUnitSizes
(
int
index
)
Optional. The sizes that can be served inside this ad unit.
repeated .google.ads.admanager.v1.AdUnitSize ad_unit_sizes = 14 [(.google.api.field_behavior) = OPTIONAL];
getAdUnitSizesCount()
public
int
getAdUnitSizesCount
()
Optional. The sizes that can be served inside this ad unit.
repeated .google.ads.admanager.v1.AdUnitSize ad_unit_sizes = 14 [(.google.api.field_behavior) = OPTIONAL];
getAdUnitSizesList()
public
List<AdUnitSize>
getAdUnitSizesList
()
Optional. The sizes that can be served inside this ad unit.
repeated .google.ads.admanager.v1.AdUnitSize ad_unit_sizes = 14 [(.google.api.field_behavior) = OPTIONAL];
getAdUnitSizesOrBuilder(int index)
public
AdUnitSizeOrBuilder
getAdUnitSizesOrBuilder
(
int
index
)
Optional. The sizes that can be served inside this ad unit.
repeated .google.ads.admanager.v1.AdUnitSize ad_unit_sizes = 14 [(.google.api.field_behavior) = OPTIONAL];
getAdUnitSizesOrBuilderList()
public
List
< ?
extends
AdUnitSizeOrBuilder
>
getAdUnitSizesOrBuilderList
()
Optional. The sizes that can be served inside this ad unit.
repeated .google.ads.admanager.v1.AdUnitSize ad_unit_sizes = 14 [(.google.api.field_behavior) = OPTIONAL];
getAppliedAdsenseEnabled()
public
AppliedAdsenseEnabledEnum
.
AppliedAdsenseEnabled
getAppliedAdsenseEnabled
()
Optional. The value of AdSense enabled directly applied to this ad unit. This attribute is optional and if not specified this ad unit will inherit the value of effectiveAdsenseEnabled from its ancestors.
.google.ads.admanager.v1.AppliedAdsenseEnabledEnum.AppliedAdsenseEnabled applied_adsense_enabled = 26 [(.google.api.field_behavior) = OPTIONAL];
getAppliedAdsenseEnabledValue()
public
int
getAppliedAdsenseEnabledValue
()
Optional. The value of AdSense enabled directly applied to this ad unit. This attribute is optional and if not specified this ad unit will inherit the value of effectiveAdsenseEnabled from its ancestors.
.google.ads.admanager.v1.AppliedAdsenseEnabledEnum.AppliedAdsenseEnabled applied_adsense_enabled = 26 [(.google.api.field_behavior) = OPTIONAL];
getAppliedLabelFrequencyCaps(int index)
public
LabelFrequencyCap
getAppliedLabelFrequencyCaps
(
int
index
)
Optional. The set of label frequency caps applied directly to this ad unit. There is a limit of 10 label frequency caps per ad unit.
repeated .google.ads.admanager.v1.LabelFrequencyCap applied_label_frequency_caps = 23 [(.google.api.field_behavior) = OPTIONAL];
getAppliedLabelFrequencyCapsCount()
public
int
getAppliedLabelFrequencyCapsCount
()
Optional. The set of label frequency caps applied directly to this ad unit. There is a limit of 10 label frequency caps per ad unit.
repeated .google.ads.admanager.v1.LabelFrequencyCap applied_label_frequency_caps = 23 [(.google.api.field_behavior) = OPTIONAL];
getAppliedLabelFrequencyCapsList()
public
List<LabelFrequencyCap>
getAppliedLabelFrequencyCapsList
()
Optional. The set of label frequency caps applied directly to this ad unit. There is a limit of 10 label frequency caps per ad unit.
repeated .google.ads.admanager.v1.LabelFrequencyCap applied_label_frequency_caps = 23 [(.google.api.field_behavior) = OPTIONAL];
getAppliedLabelFrequencyCapsOrBuilder(int index)
public
LabelFrequencyCapOrBuilder
getAppliedLabelFrequencyCapsOrBuilder
(
int
index
)
Optional. The set of label frequency caps applied directly to this ad unit. There is a limit of 10 label frequency caps per ad unit.
repeated .google.ads.admanager.v1.LabelFrequencyCap applied_label_frequency_caps = 23 [(.google.api.field_behavior) = OPTIONAL];
getAppliedLabelFrequencyCapsOrBuilderList()
public
List
< ?
extends
LabelFrequencyCapOrBuilder
>
getAppliedLabelFrequencyCapsOrBuilderList
()
Optional. The set of label frequency caps applied directly to this ad unit. There is a limit of 10 label frequency caps per ad unit.
repeated .google.ads.admanager.v1.LabelFrequencyCap applied_label_frequency_caps = 23 [(.google.api.field_behavior) = OPTIONAL];
getAppliedLabels(int index)
public
AppliedLabel
getAppliedLabels
(
int
index
)
Optional. The set of labels applied directly to this ad unit.
repeated .google.ads.admanager.v1.AppliedLabel applied_labels = 21 [(.google.api.field_behavior) = OPTIONAL];
getAppliedLabelsCount()
public
int
getAppliedLabelsCount
()
Optional. The set of labels applied directly to this ad unit.
repeated .google.ads.admanager.v1.AppliedLabel applied_labels = 21 [(.google.api.field_behavior) = OPTIONAL];
getAppliedLabelsList()
public
List<AppliedLabel>
getAppliedLabelsList
()
Optional. The set of labels applied directly to this ad unit.
repeated .google.ads.admanager.v1.AppliedLabel applied_labels = 21 [(.google.api.field_behavior) = OPTIONAL];
getAppliedLabelsOrBuilder(int index)
public
AppliedLabelOrBuilder
getAppliedLabelsOrBuilder
(
int
index
)
Optional. The set of labels applied directly to this ad unit.
repeated .google.ads.admanager.v1.AppliedLabel applied_labels = 21 [(.google.api.field_behavior) = OPTIONAL];
getAppliedLabelsOrBuilderList()
public
List
< ?
extends
AppliedLabelOrBuilder
>
getAppliedLabelsOrBuilderList
()
Optional. The set of labels applied directly to this ad unit.
repeated .google.ads.admanager.v1.AppliedLabel applied_labels = 21 [(.google.api.field_behavior) = OPTIONAL];
getAppliedTeams(int index)
public
String
getAppliedTeams
(
int
index
)
Optional. The resource names of Teams directly applied to this AdUnit. Format: "networks/{network_code}/teams/{team_id}"
repeated string applied_teams = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
getAppliedTeamsBytes(int index)
public
ByteString
getAppliedTeamsBytes
(
int
index
)
Optional. The resource names of Teams directly applied to this AdUnit. Format: "networks/{network_code}/teams/{team_id}"
repeated string applied_teams = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
getAppliedTeamsCount()
public
int
getAppliedTeamsCount
()
Optional. The resource names of Teams directly applied to this AdUnit. Format: "networks/{network_code}/teams/{team_id}"
repeated string applied_teams = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
getAppliedTeamsList()
public
ProtocolStringList
getAppliedTeamsList
()
Optional. The resource names of Teams directly applied to this AdUnit. Format: "networks/{network_code}/teams/{team_id}"
repeated string applied_teams = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
getCtvApplicationId()
public
long
getCtvApplicationId
()
Optional. The ID of the CTV application that this ad unit is within.
int64 ctv_application_id = 20 [(.google.api.field_behavior) = OPTIONAL];
getDefaultInstanceForType()
public
AdUnit
getDefaultInstanceForType
()
getDescription()
public
String
getDescription
()
Optional. A description of the ad unit. The maximum length is 65,535 characters.
string description = 5 [(.google.api.field_behavior) = OPTIONAL];
getDescriptionBytes()
public
ByteString
getDescriptionBytes
()
Optional. A description of the ad unit. The maximum length is 65,535 characters.
string description = 5 [(.google.api.field_behavior) = OPTIONAL];
getDisplayName()
public
String
getDisplayName
()
Required. The display name of the ad unit. Its maximum length is 255 characters.
string display_name = 9 [(.google.api.field_behavior) = REQUIRED];
getDisplayNameBytes()
public
ByteString
getDisplayNameBytes
()
Required. The display name of the ad unit. Its maximum length is 255 characters.
string display_name = 9 [(.google.api.field_behavior) = REQUIRED];
getEffectiveAdsenseEnabled()
public
boolean
getEffectiveAdsenseEnabled
()
Output only. Specifies whether or not the AdUnit is enabled for serving ads from the AdSense content network. This attribute defaults to the ad unit's parent or ancestor's setting if one has been set. If no ancestor of the ad unit has set appliedAdsenseEnabled, the attribute is defaulted to true.
bool effective_adsense_enabled = 27 [(.google.api.field_behavior) = OUTPUT_ONLY];
getEffectiveAppliedLabels(int index)
public
AppliedLabel
getEffectiveAppliedLabels
(
int
index
)
Output only. Contains the set of labels applied directly to the ad unit as well as those inherited from the parent ad units. If a label has been negated, only the negated label is returned. This field is readonly and is assigned by Google.
repeated .google.ads.admanager.v1.AppliedLabel effective_applied_labels = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];
getEffectiveAppliedLabelsCount()
public
int
getEffectiveAppliedLabelsCount
()
Output only. Contains the set of labels applied directly to the ad unit as well as those inherited from the parent ad units. If a label has been negated, only the negated label is returned. This field is readonly and is assigned by Google.
repeated .google.ads.admanager.v1.AppliedLabel effective_applied_labels = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];
getEffectiveAppliedLabelsList()
public
List<AppliedLabel>
getEffectiveAppliedLabelsList
()
Output only. Contains the set of labels applied directly to the ad unit as well as those inherited from the parent ad units. If a label has been negated, only the negated label is returned. This field is readonly and is assigned by Google.
repeated .google.ads.admanager.v1.AppliedLabel effective_applied_labels = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];
getEffectiveAppliedLabelsOrBuilder(int index)
public
AppliedLabelOrBuilder
getEffectiveAppliedLabelsOrBuilder
(
int
index
)
Output only. Contains the set of labels applied directly to the ad unit as well as those inherited from the parent ad units. If a label has been negated, only the negated label is returned. This field is readonly and is assigned by Google.
repeated .google.ads.admanager.v1.AppliedLabel effective_applied_labels = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];
getEffectiveAppliedLabelsOrBuilderList()
public
List
< ?
extends
AppliedLabelOrBuilder
>
getEffectiveAppliedLabelsOrBuilderList
()
Output only. Contains the set of labels applied directly to the ad unit as well as those inherited from the parent ad units. If a label has been negated, only the negated label is returned. This field is readonly and is assigned by Google.
repeated .google.ads.admanager.v1.AppliedLabel effective_applied_labels = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];
getEffectiveLabelFrequencyCaps(int index)
public
LabelFrequencyCap
getEffectiveLabelFrequencyCaps
(
int
index
)
Output only. The label frequency caps applied directly to the ad unit as well as those inherited from parent ad units.
repeated .google.ads.admanager.v1.LabelFrequencyCap effective_label_frequency_caps = 24 [(.google.api.field_behavior) = OUTPUT_ONLY];
getEffectiveLabelFrequencyCapsCount()
public
int
getEffectiveLabelFrequencyCapsCount
()
Output only. The label frequency caps applied directly to the ad unit as well as those inherited from parent ad units.
repeated .google.ads.admanager.v1.LabelFrequencyCap effective_label_frequency_caps = 24 [(.google.api.field_behavior) = OUTPUT_ONLY];
getEffectiveLabelFrequencyCapsList()
public
List<LabelFrequencyCap>
getEffectiveLabelFrequencyCapsList
()
Output only. The label frequency caps applied directly to the ad unit as well as those inherited from parent ad units.
repeated .google.ads.admanager.v1.LabelFrequencyCap effective_label_frequency_caps = 24 [(.google.api.field_behavior) = OUTPUT_ONLY];
getEffectiveLabelFrequencyCapsOrBuilder(int index)
public
LabelFrequencyCapOrBuilder
getEffectiveLabelFrequencyCapsOrBuilder
(
int
index
)
Output only. The label frequency caps applied directly to the ad unit as well as those inherited from parent ad units.
repeated .google.ads.admanager.v1.LabelFrequencyCap effective_label_frequency_caps = 24 [(.google.api.field_behavior) = OUTPUT_ONLY];
getEffectiveLabelFrequencyCapsOrBuilderList()
public
List
< ?
extends
LabelFrequencyCapOrBuilder
>
getEffectiveLabelFrequencyCapsOrBuilderList
()
Output only. The label frequency caps applied directly to the ad unit as well as those inherited from parent ad units.
repeated .google.ads.admanager.v1.LabelFrequencyCap effective_label_frequency_caps = 24 [(.google.api.field_behavior) = OUTPUT_ONLY];
getExplicitlyTargeted()
public
boolean
getExplicitlyTargeted
()
Optional. If this field is set to true, then the AdUnit will not be implicitly targeted when its parent is. Traffickers must explicitly target such an AdUnit or else no line items will serve to it. This feature is only available for Ad Manager 360 accounts.
bool explicitly_targeted = 6 [(.google.api.field_behavior) = OPTIONAL];
getExternalSetTopBoxChannelId()
public
String
getExternalSetTopBoxChannelId
()
Optional. Determines what set top box video on demand channel this ad unit corresponds to in an external set top box ad campaign system.
string external_set_top_box_channel_id = 17 [(.google.api.field_behavior) = OPTIONAL];
getExternalSetTopBoxChannelIdBytes()
public
ByteString
getExternalSetTopBoxChannelIdBytes
()
Optional. Determines what set top box video on demand channel this ad unit corresponds to in an external set top box ad campaign system.
string external_set_top_box_channel_id = 17 [(.google.api.field_behavior) = OPTIONAL];
getHasChildren()
public
boolean
getHasChildren
()
Output only. This field is set to true if the ad unit has any children.
bool has_children = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
getName()
public
String
getName
()
Identifier. The resource name of the AdUnit.
Format: networks/{network_code}/adUnits/{ad_unit_id}
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
getNameBytes()
public
ByteString
getNameBytes
()
Identifier. The resource name of the AdUnit.
Format: networks/{network_code}/adUnits/{ad_unit_id}
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
getParentAdUnit()
public
String
getParentAdUnit
()
Required. Immutable. The AdUnit's parent. Every ad unit has a parent except for the root ad unit, which is created by Google. Format: "networks/{network_code}/adUnits/{ad_unit_id}"
string parent_ad_unit = 10 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
getParentAdUnitBytes()
public
ByteString
getParentAdUnitBytes
()
Required. Immutable. The AdUnit's parent. Every ad unit has a parent except for the root ad unit, which is created by Google. Format: "networks/{network_code}/adUnits/{ad_unit_id}"
string parent_ad_unit = 10 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
getParentPath(int index)
public
AdUnitParent
getParentPath
(
int
index
)
Output only. The path to this AdUnit in the ad unit hierarchy represented as a list from the root to this ad unit's parent. For root ad units, this list is empty.
repeated .google.ads.admanager.v1.AdUnitParent parent_path = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
getParentPathCount()
public
int
getParentPathCount
()
Output only. The path to this AdUnit in the ad unit hierarchy represented as a list from the root to this ad unit's parent. For root ad units, this list is empty.
repeated .google.ads.admanager.v1.AdUnitParent parent_path = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
getParentPathList()
public
List<AdUnitParent>
getParentPathList
()
Output only. The path to this AdUnit in the ad unit hierarchy represented as a list from the root to this ad unit's parent. For root ad units, this list is empty.
repeated .google.ads.admanager.v1.AdUnitParent parent_path = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
getParentPathOrBuilder(int index)
public
AdUnitParentOrBuilder
getParentPathOrBuilder
(
int
index
)
Output only. The path to this AdUnit in the ad unit hierarchy represented as a list from the root to this ad unit's parent. For root ad units, this list is empty.
repeated .google.ads.admanager.v1.AdUnitParent parent_path = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
getParentPathOrBuilderList()
public
List
< ?
extends
AdUnitParentOrBuilder
>
getParentPathOrBuilderList
()
Output only. The path to this AdUnit in the ad unit hierarchy represented as a list from the root to this ad unit's parent. For root ad units, this list is empty.
repeated .google.ads.admanager.v1.AdUnitParent parent_path = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
getParserForType()
public
Parser<AdUnit>
getParserForType
()
getRefreshDelay()
public
Duration
getRefreshDelay
()
Optional. The duration after which an Ad Unit will automatically refresh. This is only valid for ad units in mobile apps. If not set, the ad unit will not refresh.
.google.protobuf.Duration refresh_delay = 19 [(.google.api.field_behavior) = OPTIONAL];
getRefreshDelayOrBuilder()
public
DurationOrBuilder
getRefreshDelayOrBuilder
()
Optional. The duration after which an Ad Unit will automatically refresh. This is only valid for ad units in mobile apps. If not set, the ad unit will not refresh.
.google.protobuf.Duration refresh_delay = 19 [(.google.api.field_behavior) = OPTIONAL];
getSerializedSize()
public
int
getSerializedSize
()
getSmartSizeMode()
public
SmartSizeModeEnum
.
SmartSizeMode
getSmartSizeMode
()
Optional. The smart size mode for this ad unit. This attribute is optional and defaults to SmartSizeMode.NONE for fixed sizes.
.google.ads.admanager.v1.SmartSizeModeEnum.SmartSizeMode smart_size_mode = 25 [(.google.api.field_behavior) = OPTIONAL];
getSmartSizeModeValue()
public
int
getSmartSizeModeValue
()
Optional. The smart size mode for this ad unit. This attribute is optional and defaults to SmartSizeMode.NONE for fixed sizes.
.google.ads.admanager.v1.SmartSizeModeEnum.SmartSizeMode smart_size_mode = 25 [(.google.api.field_behavior) = OPTIONAL];
getStatus()
public
AdUnit
.
Status
getStatus
()
Output only. The status of this ad unit. It defaults to ACTIVE.
.google.ads.admanager.v1.AdUnit.Status status = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
getStatusValue()
public
int
getStatusValue
()
Output only. The status of this ad unit. It defaults to ACTIVE.
.google.ads.admanager.v1.AdUnit.Status status = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
getTargetWindow()
public
TargetWindowEnum
.
TargetWindow
getTargetWindow
()
Non-empty default. The value to use for the HTML link's target attribute. This value will be interpreted as TOP if left blank.
.google.ads.admanager.v1.TargetWindowEnum.TargetWindow target_window = 12 [(.google.api.field_behavior) = NON_EMPTY_DEFAULT];
getTargetWindowValue()
public
int
getTargetWindowValue
()
Non-empty default. The value to use for the HTML link's target attribute. This value will be interpreted as TOP if left blank.
.google.ads.admanager.v1.TargetWindowEnum.TargetWindow target_window = 12 [(.google.api.field_behavior) = NON_EMPTY_DEFAULT];
getTeams(int index)
public
String
getTeams
(
int
index
)
Output only. The resource names of all Teams that this AdUnit is on as well as those inherited from parent AdUnits. Format: "networks/{network_code}/teams/{team_id}"
repeated string teams = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
getTeamsBytes(int index)
public
ByteString
getTeamsBytes
(
int
index
)
Output only. The resource names of all Teams that this AdUnit is on as well as those inherited from parent AdUnits. Format: "networks/{network_code}/teams/{team_id}"
repeated string teams = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
getTeamsCount()
public
int
getTeamsCount
()
Output only. The resource names of all Teams that this AdUnit is on as well as those inherited from parent AdUnits. Format: "networks/{network_code}/teams/{team_id}"
repeated string teams = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
getTeamsList()
public
ProtocolStringList
getTeamsList
()
Output only. The resource names of all Teams that this AdUnit is on as well as those inherited from parent AdUnits. Format: "networks/{network_code}/teams/{team_id}"
repeated string teams = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
getUpdateTime()
public
Timestamp
getUpdateTime
()
Output only. The instant this AdUnit was last modified.
.google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
getUpdateTimeOrBuilder()
public
TimestampOrBuilder
getUpdateTimeOrBuilder
()
Output only. The instant this AdUnit was last modified.
.google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
hasRefreshDelay()
public
boolean
hasRefreshDelay
()
Optional. The duration after which an Ad Unit will automatically refresh. This is only valid for ad units in mobile apps. If not set, the ad unit will not refresh.
.google.protobuf.Duration refresh_delay = 19 [(.google.api.field_behavior) = OPTIONAL];
hasUpdateTime()
public
boolean
hasUpdateTime
()
Output only. The instant this AdUnit was last modified.
.google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
hashCode()
public
int
hashCode
()
internalGetFieldAccessorTable()
protected
GeneratedMessageV3
.
FieldAccessorTable
internalGetFieldAccessorTable
()
isInitialized()
public
final
boolean
isInitialized
()
newBuilderForType()
public
AdUnit
.
Builder
newBuilderForType
()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected
AdUnit
.
Builder
newBuilderForType
(
GeneratedMessageV3
.
BuilderParent
parent
)
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected
Object
newInstance
(
GeneratedMessageV3
.
UnusedPrivateParameter
unused
)
toBuilder()
public
AdUnit
.
Builder
toBuilder
()
writeTo(CodedOutputStream output)
public
void
writeTo
(
CodedOutputStream
output
)