Class: Google::Apis::DfareportingV2_1::Size

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

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Size

Returns a new instance of Size



9900
9901
9902
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 9900

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

Instance Attribute Details

#heightFixnum

Height of this size. Corresponds to the JSON property height

Returns:

  • (Fixnum)


9876
9877
9878
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 9876

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)


9881
9882
9883
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 9881

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)


9887
9888
9889
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 9887

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)


9893
9894
9895
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 9893

def kind
  @kind
end

#widthFixnum

Width of this size. Corresponds to the JSON property width

Returns:

  • (Fixnum)


9898
9899
9900
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 9898

def width
  @width
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



9905
9906
9907
9908
9909
9910
9911
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 9905

def update!(**args)
  @height = args[:height] unless args[:height].nil?
  @iab = args[:iab] unless args[:iab].nil?
  @id = args[:id] unless args[:id].nil?
  @kind = args[:kind] unless args[:kind].nil?
  @width = args[:width] unless args[:width].nil?
end