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

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

Overview

HTML content for a creative.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ HtmlContent

Returns a new instance of HtmlContent.



1907
1908
1909
# File 'lib/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 1907

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)


1895
1896
1897
# File 'lib/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 1895

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)


1900
1901
1902
# File 'lib/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 1900

def snippet
  @snippet
end

#widthFixnum

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

Returns:

  • (Fixnum)


1905
1906
1907
# File 'lib/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 1905

def width
  @width
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1912
1913
1914
1915
1916
# File 'lib/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 1912

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