Class: Google::Apis::DfareportingV3_3::Size

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

Overview

Represents the dimensions of ads, placements, creatives, or creative assets.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Size

Returns a new instance of Size.



10875
10876
10877
# File 'generated/google/apis/dfareporting_v3_3/classes.rb', line 10875

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

Instance Attribute Details

#heightFixnum

Height of this size. Acceptable values are 0 to 32767, inclusive. Corresponds to the JSON property height

Returns:

  • (Fixnum)


10851
10852
10853
# File 'generated/google/apis/dfareporting_v3_3/classes.rb', line 10851

def height
  @height
end

#iabBoolean Also known as: iab?

IAB standard size. This is a read-only, auto-generated field. Corresponds to the JSON property iab

Returns:

  • (Boolean)


10856
10857
10858
# File 'generated/google/apis/dfareporting_v3_3/classes.rb', line 10856

def iab
  @iab
end

#idFixnum

ID of this size. This is a read-only, auto-generated field. Corresponds to the JSON property id

Returns:

  • (Fixnum)


10862
10863
10864
# File 'generated/google/apis/dfareporting_v3_3/classes.rb', line 10862

def id
  @id
end

#kindString

Identifies what kind of resource this is. Value: the fixed string " dfareporting#size". Corresponds to the JSON property kind

Returns:

  • (String)


10868
10869
10870
# File 'generated/google/apis/dfareporting_v3_3/classes.rb', line 10868

def kind
  @kind
end

#widthFixnum

Width of this size. Acceptable values are 0 to 32767, inclusive. Corresponds to the JSON property width

Returns:

  • (Fixnum)


10873
10874
10875
# File 'generated/google/apis/dfareporting_v3_3/classes.rb', line 10873

def width
  @width
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



10880
10881
10882
10883
10884
10885
10886
# File 'generated/google/apis/dfareporting_v3_3/classes.rb', line 10880

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