Class: Google::Apis::Searchads360V0::GoogleAdsSearchads360V0CommonTextLabel
- Inherits:
-
Object
- Object
- Google::Apis::Searchads360V0::GoogleAdsSearchads360V0CommonTextLabel
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/searchads360_v0/classes.rb,
lib/google/apis/searchads360_v0/representations.rb,
lib/google/apis/searchads360_v0/representations.rb
Overview
A type of label displaying text on a colored background.
Instance Attribute Summary collapse
-
#background_color ⇒ String
Background color of the label in HEX format.
-
#description ⇒ String
A short description of the label.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleAdsSearchads360V0CommonTextLabel
constructor
A new instance of GoogleAdsSearchads360V0CommonTextLabel.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleAdsSearchads360V0CommonTextLabel
Returns a new instance of GoogleAdsSearchads360V0CommonTextLabel.
2507 2508 2509 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 2507 def initialize(**args) update!(**args) end |
Instance Attribute Details
#background_color ⇒ String
Background color of the label in HEX format. This string must match the
regular expression '^#([a-fA-F0-9]6
|[a-fA-F0-9]3
)$'. Note: The background
color may not be visible for manager accounts.
Corresponds to the JSON property backgroundColor
2499 2500 2501 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 2499 def background_color @background_color end |
#description ⇒ String
A short description of the label. The length must be no more than 200
characters.
Corresponds to the JSON property description
2505 2506 2507 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 2505 def description @description end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2512 2513 2514 2515 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 2512 def update!(**args) @background_color = args[:background_color] if args.key?(:background_color) @description = args[:description] if args.key?(:description) end |