Class: Google::Apis::RealtimebiddingV1::CreativeDimensions
- Inherits:
-
Object
- Object
- Google::Apis::RealtimebiddingV1::CreativeDimensions
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/realtimebidding_v1/classes.rb,
lib/google/apis/realtimebidding_v1/representations.rb,
lib/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.
661 662 663 |
# File 'lib/google/apis/realtimebidding_v1/classes.rb', line 661 def initialize(**args) update!(**args) end |
Instance Attribute Details
#height ⇒ Fixnum
The height of the creative in pixels.
Corresponds to the JSON property height
654 655 656 |
# File 'lib/google/apis/realtimebidding_v1/classes.rb', line 654 def height @height end |
#width ⇒ Fixnum
The width of the creative in pixels.
Corresponds to the JSON property width
659 660 661 |
# File 'lib/google/apis/realtimebidding_v1/classes.rb', line 659 def width @width end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
666 667 668 669 |
# File 'lib/google/apis/realtimebidding_v1/classes.rb', line 666 def update!(**args) @height = args[:height] if args.key?(:height) @width = args[:width] if args.key?(:width) end |