Class: Google::Apis::Adexchangebuyer2V2beta1::Size

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

Overview

Message depicting the size of the creative. The units of width and height depend on the type of the targeting.

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



3877
3878
3879
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 3877

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

Instance Attribute Details

#heightFixnum

The height of the creative. Corresponds to the JSON property height

Returns:

  • (Fixnum)


3870
3871
3872
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 3870

def height
  @height
end

#widthFixnum

The width of the creative Corresponds to the JSON property width

Returns:

  • (Fixnum)


3875
3876
3877
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 3875

def width
  @width
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3882
3883
3884
3885
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 3882

def update!(**args)
  @height = args[:height] if args.key?(:height)
  @width = args[:width] if args.key?(:width)
end