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

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

Instance Method Summary collapse

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

#heightFixnum

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

Returns:

  • (Fixnum)


383
384
385
# File 'generated/google/apis/realtimebidding_v1/classes.rb', line 383

def height
  @height
end

#widthFixnum

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

Returns:

  • (Fixnum)


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