Class: Google::Apis::DfareportingV3_0::Size
- Inherits:
-
Object
- Object
- Google::Apis::DfareportingV3_0::Size
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/dfareporting_v3_0/classes.rb,
generated/google/apis/dfareporting_v3_0/representations.rb,
generated/google/apis/dfareporting_v3_0/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.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Size
Returns a new instance of Size
10854 10855 10856 |
# File 'generated/google/apis/dfareporting_v3_0/classes.rb', line 10854 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
10830 10831 10832 |
# File 'generated/google/apis/dfareporting_v3_0/classes.rb', line 10830 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
10835 10836 10837 |
# File 'generated/google/apis/dfareporting_v3_0/classes.rb', line 10835 def iab @iab end |
#id ⇒ Fixnum
ID of this size. This is a read-only, auto-generated field.
Corresponds to the JSON property id
10841 10842 10843 |
# File 'generated/google/apis/dfareporting_v3_0/classes.rb', line 10841 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
10847 10848 10849 |
# File 'generated/google/apis/dfareporting_v3_0/classes.rb', line 10847 def kind @kind end |
#width ⇒ Fixnum
Width of this size. Acceptable values are 0 to 32767, inclusive.
Corresponds to the JSON property width
10852 10853 10854 |
# File 'generated/google/apis/dfareporting_v3_0/classes.rb', line 10852 def width @width end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
10859 10860 10861 10862 10863 10864 10865 |
# File 'generated/google/apis/dfareporting_v3_0/classes.rb', line 10859 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 |