class Google::Apis::AuthorizedbuyersmarketplaceV1::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]

type[RW]

The type of the ad slot size. Corresponds to the JSON property ‘type` @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/authorizedbuyersmarketplace_v1/classes.rb, line 92
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

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