Class: Google::Apis::AdsenseV1_4::AdStyle

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/adsense_v1_4/classes.rb,
generated/google/apis/adsense_v1_4/representations.rb,
generated/google/apis/adsense_v1_4/representations.rb

Defined Under Namespace

Classes: Colors, Font

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ AdStyle

Returns a new instance of AdStyle



254
255
256
# File 'generated/google/apis/adsense_v1_4/classes.rb', line 254

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

Instance Attribute Details

#colorsGoogle::Apis::AdsenseV1_4::AdStyle::Colors

The colors which are included in the style. These are represented as six hexadecimal characters, similar to HTML color codes, but without the leading hash. Corresponds to the JSON property colors



237
238
239
# File 'generated/google/apis/adsense_v1_4/classes.rb', line 237

def colors
  @colors
end

#cornersString

The style of the corners in the ad (deprecated: never populated, ignored). Corresponds to the JSON property corners

Returns:

  • (String)


242
243
244
# File 'generated/google/apis/adsense_v1_4/classes.rb', line 242

def corners
  @corners
end

#fontGoogle::Apis::AdsenseV1_4::AdStyle::Font

The font which is included in the style. Corresponds to the JSON property font



247
248
249
# File 'generated/google/apis/adsense_v1_4/classes.rb', line 247

def font
  @font
end

#kindString

Kind this is, in this case adsense#adStyle. Corresponds to the JSON property kind

Returns:

  • (String)


252
253
254
# File 'generated/google/apis/adsense_v1_4/classes.rb', line 252

def kind
  @kind
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



259
260
261
262
263
264
# File 'generated/google/apis/adsense_v1_4/classes.rb', line 259

def update!(**args)
  @colors = args[:colors] if args.key?(:colors)
  @corners = args[:corners] if args.key?(:corners)
  @font = args[:font] if args.key?(:font)
  @kind = args[:kind] if args.key?(:kind)
end