Class: Google::Apis::DfareportingV4::Size
- Inherits:
-
Object
- Object
- Google::Apis::DfareportingV4::Size
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/dfareporting_v4/classes.rb,
lib/google/apis/dfareporting_v4/representations.rb,
lib/google/apis/dfareporting_v4/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 ⇒ Fixnum
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.
Constructor Details
#initialize(**args) ⇒ Size
Returns a new instance of Size.
13037 13038 13039 |
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 13037 def initialize(**args) update!(**args) end |
Instance Attribute Details
#height ⇒ Fixnum
Height of this size. Acceptable values are 0 to 32767, inclusive.
Corresponds to the JSON property height
13013 13014 13015 |
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 13013 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
13018 13019 13020 |
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 13018 def iab @iab end |
#id ⇒ Fixnum
ID of this size. This is a read-only, auto-generated field.
Corresponds to the JSON property id
13024 13025 13026 |
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 13024 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
13030 13031 13032 |
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 13030 def kind @kind end |
#width ⇒ Fixnum
Width of this size. Acceptable values are 0 to 32767, inclusive.
Corresponds to the JSON property width
13035 13036 13037 |
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 13035 def width @width end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
13042 13043 13044 13045 13046 13047 13048 |
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 13042 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 |