Class: Google::Apis::DfareportingV2_1::Size
- Inherits:
-
Object
- Object
- Google::Apis::DfareportingV2_1::Size
- Includes:
- Core::Hashable
- Defined in:
- generated/google/apis/dfareporting_v2_1/classes.rb,
generated/google/apis/dfareporting_v2_1/representations.rb,
generated/google/apis/dfareporting_v2_1/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::Hashable
Constructor Details
#initialize(**args) ⇒ Size
Returns a new instance of Size
9900 9901 9902 |
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 9900 def initialize(**args) update!(**args) end |
Instance Attribute Details
#height ⇒ Fixnum
Height of this size.
Corresponds to the JSON property height
9876 9877 9878 |
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 9876 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
9881 9882 9883 |
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 9881 def iab @iab end |
#id ⇒ String
ID of this size. This is a read-only, auto-generated field.
Corresponds to the JSON property id
9887 9888 9889 |
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 9887 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
9893 9894 9895 |
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 9893 def kind @kind end |
#width ⇒ Fixnum
Width of this size.
Corresponds to the JSON property width
9898 9899 9900 |
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 9898 def width @width end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
9905 9906 9907 9908 9909 9910 9911 |
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 9905 def update!(**args) @height = args[:height] unless args[:height].nil? @iab = args[:iab] unless args[:iab].nil? @id = args[:id] unless args[:id].nil? @kind = args[:kind] unless args[:kind].nil? @width = args[:width] unless args[:width].nil? end |