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

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

Constructor Details

#initialize(**args) ⇒ Size

Returns a new instance of Size.



3864
3865
3866
# File 'lib/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 3864

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

Instance Attribute Details

#heightFixnum

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

Returns:

  • (Fixnum)


3857
3858
3859
# File 'lib/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 3857

def height
  @height
end

#widthFixnum

The width of the creative Corresponds to the JSON property width

Returns:

  • (Fixnum)


3862
3863
3864
# File 'lib/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 3862

def width
  @width
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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