Class: Google::Apis::DfareportingV2_5::Size
- Inherits:
-
Object
- Object
- Google::Apis::DfareportingV2_5::Size
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/dfareporting_v2_5/classes.rb,
generated/google/apis/dfareporting_v2_5/representations.rb,
generated/google/apis/dfareporting_v2_5/representations.rb
Overview
Represents the dimensions of ads, placements, creatives, or creative assets.
Instance Attribute Summary collapse
-
#height ⇒ Fixnum
Height of this size.
-
#iab ⇒ Boolean
(also: #iab?)
IAB standard size.
-
#id ⇒ String
ID of this size.
-
#kind ⇒ String
Identifies what kind of resource this is.
-
#width ⇒ Fixnum
Width of this size.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Size
constructor
A new instance of Size.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Size
Returns a new instance of Size
10329 10330 10331 |
# File 'generated/google/apis/dfareporting_v2_5/classes.rb', line 10329 def initialize(**args) update!(**args) end |
Instance Attribute Details
#height ⇒ Fixnum
Height of this size.
Corresponds to the JSON property height
10305 10306 10307 |
# File 'generated/google/apis/dfareporting_v2_5/classes.rb', line 10305 def height @height end |
#iab ⇒ Boolean Also known as: iab?
IAB standard size. This is a read-only, auto-generated field.
Corresponds to the JSON property iab
10310 10311 10312 |
# File 'generated/google/apis/dfareporting_v2_5/classes.rb', line 10310 def iab @iab end |
#id ⇒ String
ID of this size. This is a read-only, auto-generated field.
Corresponds to the JSON property id
10316 10317 10318 |
# File 'generated/google/apis/dfareporting_v2_5/classes.rb', line 10316 def id @id end |
#kind ⇒ String
Identifies what kind of resource this is. Value: the fixed string "
dfareporting#size".
Corresponds to the JSON property kind
10322 10323 10324 |
# File 'generated/google/apis/dfareporting_v2_5/classes.rb', line 10322 def kind @kind end |
#width ⇒ Fixnum
Width of this size.
Corresponds to the JSON property width
10327 10328 10329 |
# File 'generated/google/apis/dfareporting_v2_5/classes.rb', line 10327 def width @width end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
10334 10335 10336 10337 10338 10339 10340 |
# File 'generated/google/apis/dfareporting_v2_5/classes.rb', line 10334 def update!(**args) @height = args[:height] if args.key?(:height) @iab = args[:iab] if args.key?(:iab) @id = args[:id] if args.key?(:id) @kind = args[:kind] if args.key?(:kind) @width = args[:width] if args.key?(:width) end |