Class: Google::Apis::AuthorizedbuyersmarketplaceV1::AdSize
- Inherits:
-
Object
- Object
- Google::Apis::AuthorizedbuyersmarketplaceV1::AdSize
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/authorizedbuyersmarketplace_v1/classes.rb,
lib/google/apis/authorizedbuyersmarketplace_v1/representations.rb,
lib/google/apis/authorizedbuyersmarketplace_v1/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.
92 93 94 |
# File 'lib/google/apis/authorizedbuyersmarketplace_v1/classes.rb', line 92 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
79 80 81 |
# File 'lib/google/apis/authorizedbuyersmarketplace_v1/classes.rb', line 79 def height @height end |
#type ⇒ String
The type of the ad slot size.
Corresponds to the JSON property type
84 85 86 |
# File 'lib/google/apis/authorizedbuyersmarketplace_v1/classes.rb', line 84 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
90 91 92 |
# File 'lib/google/apis/authorizedbuyersmarketplace_v1/classes.rb', line 90 def width @width end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
97 98 99 100 101 |
# 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 |