Class: Google::Apis::Searchads360V0::GoogleAdsSearchads360V0CommonTextLabel

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAdsSearchads360V0CommonTextLabel

Returns a new instance of GoogleAdsSearchads360V0CommonTextLabel.



2398
2399
2400
# File 'lib/google/apis/searchads360_v0/classes.rb', line 2398

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#background_colorString

Background color of the label in RGB 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

Returns:

  • (String)


2390
2391
2392
# File 'lib/google/apis/searchads360_v0/classes.rb', line 2390

def background_color
  @background_color
end

#descriptionString

A short description of the label. The length must be no more than 200 characters. Corresponds to the JSON property description

Returns:

  • (String)


2396
2397
2398
# File 'lib/google/apis/searchads360_v0/classes.rb', line 2396

def description
  @description
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2403
2404
2405
2406
# File 'lib/google/apis/searchads360_v0/classes.rb', line 2403

def update!(**args)
  @background_color = args[:background_color] if args.key?(:background_color)
  @description = args[:description] if args.key?(:description)
end