Class: Google::Apis::DfareportingV5::Size

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/dfareporting_v5/classes.rb,
lib/google/apis/dfareporting_v5/representations.rb,
lib/google/apis/dfareporting_v5/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.



12321
12322
12323
# File 'lib/google/apis/dfareporting_v5/classes.rb', line 12321

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)


12297
12298
12299
# File 'lib/google/apis/dfareporting_v5/classes.rb', line 12297

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)


12302
12303
12304
# File 'lib/google/apis/dfareporting_v5/classes.rb', line 12302

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)


12308
12309
12310
# File 'lib/google/apis/dfareporting_v5/classes.rb', line 12308

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)


12314
12315
12316
# File 'lib/google/apis/dfareporting_v5/classes.rb', line 12314

def kind
  @kind
end

#widthFixnum

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

Returns:

  • (Fixnum)


12319
12320
12321
# File 'lib/google/apis/dfareporting_v5/classes.rb', line 12319

def width
  @width
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



12326
12327
12328
12329
12330
12331
12332
# File 'lib/google/apis/dfareporting_v5/classes.rb', line 12326

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