class Google::Apis::Adexchangebuyer2V2beta1::AdSize

Represents size of a single ad slot, or a creative.

Attributes

height[RW]

The height of the ad slot in pixels. This field will be present only when size type is `PIXEL`. Corresponds to the JSON property `height` @return [Fixnum]

size_type[RW]

The size type of the ad slot. Corresponds to the JSON property `sizeType` @return [String]

width[RW]

The width of the ad slot in pixels. This field will be present only when size type is `PIXEL`. Corresponds to the JSON property `width` @return [Fixnum]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/adexchangebuyer2_v2beta1/classes.rb, line 107
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/adexchangebuyer2_v2beta1/classes.rb, line 112
def update!(**args)
  @height = args[:height] if args.key?(:height)
  @size_type = args[:size_type] if args.key?(:size_type)
  @width = args[:width] if args.key?(:width)
end