Class: Google::Apis::RealtimebiddingV1::CreativeDimensions
- Inherits:
-
Object
- Object
- Google::Apis::RealtimebiddingV1::CreativeDimensions
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/realtimebidding_v1/classes.rb,
generated/google/apis/realtimebidding_v1/representations.rb,
generated/google/apis/realtimebidding_v1/representations.rb
Overview
The dimensions of a creative. This applies to only HTML and Native creatives.
Instance Attribute Summary collapse
-
#height ⇒ Fixnum
The height of the creative in pixels.
-
#width ⇒ Fixnum
The width of the creative in pixels.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CreativeDimensions
constructor
A new instance of CreativeDimensions.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ CreativeDimensions
Returns a new instance of CreativeDimensions.
390 391 392 |
# File 'generated/google/apis/realtimebidding_v1/classes.rb', line 390 def initialize(**args) update!(**args) end |
Instance Attribute Details
#height ⇒ Fixnum
The height of the creative in pixels.
Corresponds to the JSON property height
383 384 385 |
# File 'generated/google/apis/realtimebidding_v1/classes.rb', line 383 def height @height end |
#width ⇒ Fixnum
The width of the creative in pixels.
Corresponds to the JSON property width
388 389 390 |
# File 'generated/google/apis/realtimebidding_v1/classes.rb', line 388 def width @width end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
395 396 397 398 |
# File 'generated/google/apis/realtimebidding_v1/classes.rb', line 395 def update!(**args) @height = args[:height] if args.key?(:height) @width = args[:width] if args.key?(:width) end |