Class: Google::Apis::DfareportingV3_4::Size

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

Overview

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Size

Returns a new instance of Size.


11986
11987
11988
# File 'generated/google/apis/dfareporting_v3_4/classes.rb', line 11986

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)

11962
11963
11964
# File 'generated/google/apis/dfareporting_v3_4/classes.rb', line 11962

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)

11967
11968
11969
# File 'generated/google/apis/dfareporting_v3_4/classes.rb', line 11967

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)

11973
11974
11975
# File 'generated/google/apis/dfareporting_v3_4/classes.rb', line 11973

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)

11979
11980
11981
# File 'generated/google/apis/dfareporting_v3_4/classes.rb', line 11979

def kind
  @kind
end

#widthFixnum

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

Returns:

  • (Fixnum)

11984
11985
11986
# File 'generated/google/apis/dfareporting_v3_4/classes.rb', line 11984

def width
  @width
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


11991
11992
11993
11994
11995
11996
11997
# File 'generated/google/apis/dfareporting_v3_4/classes.rb', line 11991

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