Class: Google::Apis::DfareportingV2_7::Size

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



10651
10652
10653
# File 'generated/google/apis/dfareporting_v2_7/classes.rb', line 10651

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

Instance Attribute Details

#heightFixnum

Height of this size. Corresponds to the JSON property height

Returns:

  • (Fixnum)


10627
10628
10629
# File 'generated/google/apis/dfareporting_v2_7/classes.rb', line 10627

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)


10632
10633
10634
# File 'generated/google/apis/dfareporting_v2_7/classes.rb', line 10632

def iab
  @iab
end

#idString

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

Returns:

  • (String)


10638
10639
10640
# File 'generated/google/apis/dfareporting_v2_7/classes.rb', line 10638

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)


10644
10645
10646
# File 'generated/google/apis/dfareporting_v2_7/classes.rb', line 10644

def kind
  @kind
end

#widthFixnum

Width of this size. Corresponds to the JSON property width

Returns:

  • (Fixnum)


10649
10650
10651
# File 'generated/google/apis/dfareporting_v2_7/classes.rb', line 10649

def width
  @width
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



10656
10657
10658
10659
10660
10661
10662
# File 'generated/google/apis/dfareporting_v2_7/classes.rb', line 10656

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