Class: Google::Apis::RealtimebiddingV1::CreativeDimensions

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#heightFixnum

The height of the creative in pixels. Corresponds to the JSON property height

Returns:

  • (Fixnum)


654
655
656
# File 'lib/google/apis/realtimebidding_v1/classes.rb', line 654

def height
  @height
end

#widthFixnum

The width of the creative in pixels. Corresponds to the JSON property width

Returns:

  • (Fixnum)


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