Class: Google::Apis::Adexchangebuyer2V2beta1::HtmlContent

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/adexchangebuyer2_v2beta1/classes.rb,
generated/google/apis/adexchangebuyer2_v2beta1/representations.rb,
generated/google/apis/adexchangebuyer2_v2beta1/representations.rb

Overview

HTML content for a creative.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ HtmlContent

Returns a new instance of HtmlContent



1985
1986
1987
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 1985

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#heightFixnum

The height of the HTML snippet in pixels. Corresponds to the JSON property height

Returns:

  • (Fixnum)


1973
1974
1975
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 1973

def height
  @height
end

#snippetString

The HTML snippet that displays the ad when inserted in the web page. Corresponds to the JSON property snippet

Returns:

  • (String)


1983
1984
1985
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 1983

def snippet
  @snippet
end

#widthFixnum

The width of the HTML snippet in pixels. Corresponds to the JSON property width

Returns:

  • (Fixnum)


1978
1979
1980
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 1978

def width
  @width
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1990
1991
1992
1993
1994
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 1990

def update!(**args)
  @height = args[:height] if args.key?(:height)
  @width = args[:width] if args.key?(:width)
  @snippet = args[:snippet] if args.key?(:snippet)
end