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.
2468 2469 2470 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 2468 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
2460 2461 2462 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 2460 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
2466 2467 2468 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 2466 def description @description end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2473 2474 2475 2476 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 2473 def update!(**args) @background_color = args[:background_color] if args.key?(:background_color) @description = args[:description] if args.key?(:description) end |