Class: Google::Apis::RealtimebiddingV1::HtmlContent

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

HTML content for a creative.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ HtmlContent

Returns a new instance of HtmlContent.



1164
1165
1166
# File 'lib/google/apis/realtimebidding_v1/classes.rb', line 1164

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

Instance Attribute Details

#heightFixnum

The height of the HTML snippet in pixels. Can be used to filter the response of the creatives.list method. Corresponds to the JSON property height

Returns:

  • (Fixnum)


1151
1152
1153
# File 'lib/google/apis/realtimebidding_v1/classes.rb', line 1151

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)


1156
1157
1158
# File 'lib/google/apis/realtimebidding_v1/classes.rb', line 1156

def snippet
  @snippet
end

#widthFixnum

The width of the HTML snippet in pixels. Can be used to filter the response of the creatives.list method. Corresponds to the JSON property width

Returns:

  • (Fixnum)


1162
1163
1164
# File 'lib/google/apis/realtimebidding_v1/classes.rb', line 1162

def width
  @width
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1169
1170
1171
1172
1173
# File 'lib/google/apis/realtimebidding_v1/classes.rb', line 1169

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