Class: Google::Ads::AdManager::V1::AdUnit
- Inherits:
-
Object
- Object
- Google::Ads::AdManager::V1::AdUnit
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/ads/admanager/v1/ad_unit_messages.rb
Overview
The AdUnit resource.
Instance Attribute Summary collapse
-
#ad_unit_code ⇒ ::String
Immutable.
-
#ad_unit_id ⇒ ::Integer
readonly
Output only.
-
#ad_unit_sizes ⇒ ::Array<::Google::Ads::AdManager::V1::AdUnitSize>
Optional.
-
#applied_adsense_enabled ⇒ ::Boolean
Optional.
-
#applied_label_frequency_caps ⇒ ::Array<::Google::Ads::AdManager::V1::LabelFrequencyCap>
Optional.
-
#applied_labels ⇒ ::Array<::Google::Ads::AdManager::V1::AppliedLabel>
Optional.
-
#applied_target_window ⇒ ::Google::Ads::AdManager::V1::TargetWindowEnum::TargetWindow
Optional.
-
#applied_teams ⇒ ::Array<::String>
Optional.
-
#description ⇒ ::String
Optional.
-
#display_name ⇒ ::String
Required.
-
#effective_adsense_enabled ⇒ ::Boolean
readonly
Output only.
-
#effective_applied_labels ⇒ ::Array<::Google::Ads::AdManager::V1::AppliedLabel>
readonly
Output only.
-
#effective_label_frequency_caps ⇒ ::Array<::Google::Ads::AdManager::V1::LabelFrequencyCap>
readonly
Output only.
-
#effective_target_window ⇒ ::Google::Ads::AdManager::V1::TargetWindowEnum::TargetWindow
readonly
Output only.
-
#explicitly_targeted ⇒ ::Boolean
Optional.
-
#external_set_top_box_channel_id ⇒ ::String
Optional.
-
#has_children ⇒ ::Boolean
readonly
Output only.
-
#name ⇒ ::String
Identifier.
-
#parent_ad_unit ⇒ ::String
Required.
-
#parent_path ⇒ ::Array<::Google::Ads::AdManager::V1::AdUnitParent>
readonly
Output only.
-
#refresh_delay ⇒ ::Google::Protobuf::Duration
Optional.
-
#smart_size_mode ⇒ ::Google::Ads::AdManager::V1::SmartSizeModeEnum::SmartSizeMode
Optional.
-
#status ⇒ ::Google::Ads::AdManager::V1::AdUnitStatusEnum::AdUnitStatus
readonly
Output only.
-
#teams ⇒ ::Array<::String>
readonly
Output only.
-
#update_time ⇒ ::Google::Protobuf::Timestamp
readonly
Output only.
Instance Attribute Details
#ad_unit_code ⇒ ::String
Returns 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 on the ad unit ID.
134 135 136 137 |
# File 'proto_docs/google/ads/admanager/v1/ad_unit_messages.rb', line 134 class AdUnit include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#ad_unit_id ⇒ ::Integer (readonly)
Returns Output only. AdUnit ID.
134 135 136 137 |
# File 'proto_docs/google/ads/admanager/v1/ad_unit_messages.rb', line 134 class AdUnit include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#ad_unit_sizes ⇒ ::Array<::Google::Ads::AdManager::V1::AdUnitSize>
Returns Optional. The sizes that can be served inside this ad unit.
134 135 136 137 |
# File 'proto_docs/google/ads/admanager/v1/ad_unit_messages.rb', line 134 class AdUnit include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#applied_adsense_enabled ⇒ ::Boolean
Returns 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.
134 135 136 137 |
# File 'proto_docs/google/ads/admanager/v1/ad_unit_messages.rb', line 134 class AdUnit include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#applied_label_frequency_caps ⇒ ::Array<::Google::Ads::AdManager::V1::LabelFrequencyCap>
Returns 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.
134 135 136 137 |
# File 'proto_docs/google/ads/admanager/v1/ad_unit_messages.rb', line 134 class AdUnit include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#applied_labels ⇒ ::Array<::Google::Ads::AdManager::V1::AppliedLabel>
Returns Optional. The set of labels applied directly to this ad unit.
134 135 136 137 |
# File 'proto_docs/google/ads/admanager/v1/ad_unit_messages.rb', line 134 class AdUnit include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#applied_target_window ⇒ ::Google::Ads::AdManager::V1::TargetWindowEnum::TargetWindow
Returns Optional. The target window directly applied to this AdUnit. If this field is not set, this AdUnit uses the target window specified in effectiveTargetWindow.
134 135 136 137 |
# File 'proto_docs/google/ads/admanager/v1/ad_unit_messages.rb', line 134 class AdUnit include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#applied_teams ⇒ ::Array<::String>
Returns Optional. The resource names of Teams directly applied to this AdUnit. Format: "networks/{network_code}/teams/{team_id}".
134 135 136 137 |
# File 'proto_docs/google/ads/admanager/v1/ad_unit_messages.rb', line 134 class AdUnit include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#description ⇒ ::String
Returns Optional. A description of the ad unit. The maximum length is 65,535 characters.
134 135 136 137 |
# File 'proto_docs/google/ads/admanager/v1/ad_unit_messages.rb', line 134 class AdUnit include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#display_name ⇒ ::String
Returns Required. The display name of the ad unit. Its maximum length is 255 characters.
134 135 136 137 |
# File 'proto_docs/google/ads/admanager/v1/ad_unit_messages.rb', line 134 class AdUnit include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#effective_adsense_enabled ⇒ ::Boolean (readonly)
Returns 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.
134 135 136 137 |
# File 'proto_docs/google/ads/admanager/v1/ad_unit_messages.rb', line 134 class AdUnit include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#effective_applied_labels ⇒ ::Array<::Google::Ads::AdManager::V1::AppliedLabel> (readonly)
Returns 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.
134 135 136 137 |
# File 'proto_docs/google/ads/admanager/v1/ad_unit_messages.rb', line 134 class AdUnit include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#effective_label_frequency_caps ⇒ ::Array<::Google::Ads::AdManager::V1::LabelFrequencyCap> (readonly)
Returns Output only. The label frequency caps applied directly to the ad unit as well as those inherited from parent ad units.
134 135 136 137 |
# File 'proto_docs/google/ads/admanager/v1/ad_unit_messages.rb', line 134 class AdUnit include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#effective_target_window ⇒ ::Google::Ads::AdManager::V1::TargetWindowEnum::TargetWindow (readonly)
Returns Output only. Non-empty default. The target window of this AdUnit. This value is inherited from ancestor AdUnits and defaults to TOP if no AdUnit in the hierarchy specifies it.
134 135 136 137 |
# File 'proto_docs/google/ads/admanager/v1/ad_unit_messages.rb', line 134 class AdUnit include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#explicitly_targeted ⇒ ::Boolean
Returns 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.
134 135 136 137 |
# File 'proto_docs/google/ads/admanager/v1/ad_unit_messages.rb', line 134 class AdUnit include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#external_set_top_box_channel_id ⇒ ::String
Returns Optional. Determines what set top box video on demand channel this ad unit corresponds to in an external set top box ad campaign system.
134 135 136 137 |
# File 'proto_docs/google/ads/admanager/v1/ad_unit_messages.rb', line 134 class AdUnit include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#has_children ⇒ ::Boolean (readonly)
Returns Output only. This field is set to true if the ad unit has any children.
134 135 136 137 |
# File 'proto_docs/google/ads/admanager/v1/ad_unit_messages.rb', line 134 class AdUnit include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#name ⇒ ::String
Returns Identifier. The resource name of the AdUnit.
Format: networks/{network_code}/adUnits/{ad_unit_id}
.
134 135 136 137 |
# File 'proto_docs/google/ads/admanager/v1/ad_unit_messages.rb', line 134 class AdUnit include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#parent_ad_unit ⇒ ::String
Returns 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}".
134 135 136 137 |
# File 'proto_docs/google/ads/admanager/v1/ad_unit_messages.rb', line 134 class AdUnit include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#parent_path ⇒ ::Array<::Google::Ads::AdManager::V1::AdUnitParent> (readonly)
Returns 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.
134 135 136 137 |
# File 'proto_docs/google/ads/admanager/v1/ad_unit_messages.rb', line 134 class AdUnit include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#refresh_delay ⇒ ::Google::Protobuf::Duration
Returns 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.
134 135 136 137 |
# File 'proto_docs/google/ads/admanager/v1/ad_unit_messages.rb', line 134 class AdUnit include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#smart_size_mode ⇒ ::Google::Ads::AdManager::V1::SmartSizeModeEnum::SmartSizeMode
Returns Optional. The smart size mode for this ad unit. This attribute is optional and defaults to SmartSizeMode.NONE for fixed sizes.
134 135 136 137 |
# File 'proto_docs/google/ads/admanager/v1/ad_unit_messages.rb', line 134 class AdUnit include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#status ⇒ ::Google::Ads::AdManager::V1::AdUnitStatusEnum::AdUnitStatus (readonly)
Returns Output only. The status of this ad unit. It defaults to ACTIVE.
134 135 136 137 |
# File 'proto_docs/google/ads/admanager/v1/ad_unit_messages.rb', line 134 class AdUnit include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#teams ⇒ ::Array<::String> (readonly)
Returns 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}".
134 135 136 137 |
# File 'proto_docs/google/ads/admanager/v1/ad_unit_messages.rb', line 134 class AdUnit include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#update_time ⇒ ::Google::Protobuf::Timestamp (readonly)
Returns Output only. The time this AdUnit was last modified.
134 135 136 137 |
# File 'proto_docs/google/ads/admanager/v1/ad_unit_messages.rb', line 134 class AdUnit include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |