Class: Google::Apis::AuthorizedbuyersmarketplaceV1alpha::AdSize
- Inherits:
-
Object
- Object
- Google::Apis::AuthorizedbuyersmarketplaceV1alpha::AdSize
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/authorizedbuyersmarketplace_v1alpha/classes.rb,
lib/google/apis/authorizedbuyersmarketplace_v1alpha/representations.rb,
lib/google/apis/authorizedbuyersmarketplace_v1alpha/representations.rb
Overview
Represents size of a single ad slot, or a creative.
Instance Attribute Summary collapse
-
#height ⇒ Fixnum
The height of the ad slot in pixels.
-
#type ⇒ String
The type of the ad slot size.
-
#width ⇒ Fixnum
The width of the ad slot in pixels.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AdSize
constructor
A new instance of AdSize.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AdSize
Returns a new instance of AdSize.
140 141 142 |
# File 'lib/google/apis/authorizedbuyersmarketplace_v1alpha/classes.rb', line 140 def initialize(**args) update!(**args) end |
Instance Attribute Details
#height ⇒ Fixnum
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
127 128 129 |
# File 'lib/google/apis/authorizedbuyersmarketplace_v1alpha/classes.rb', line 127 def height @height end |
#type ⇒ String
The type of the ad slot size.
Corresponds to the JSON property type
132 133 134 |
# File 'lib/google/apis/authorizedbuyersmarketplace_v1alpha/classes.rb', line 132 def type @type end |
#width ⇒ Fixnum
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
138 139 140 |
# File 'lib/google/apis/authorizedbuyersmarketplace_v1alpha/classes.rb', line 138 def width @width end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
145 146 147 148 149 |
# File 'lib/google/apis/authorizedbuyersmarketplace_v1alpha/classes.rb', line 145 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 |