Class: Google::Apis::Adexchangebuyer2V2beta1::NativeContent

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

Native 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) ⇒ NativeContent

Returns a new instance of NativeContent



169
170
171
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 169

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

Instance Attribute Details

#advertiser_nameString

The name of the advertiser or sponsor, to be displayed in the ad creative. Corresponds to the JSON property advertiserName

Returns:

  • (String)


136
137
138
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 136

def advertiser_name
  @advertiser_name
end

#app_iconGoogle::Apis::Adexchangebuyer2V2beta1::Image

An image resource. You may provide a larger image than was requested, so long as the aspect ratio is preserved. Corresponds to the JSON property appIcon



152
153
154
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 152

def app_icon
  @app_icon
end

#bodyString

A long description of the ad. Corresponds to the JSON property body

Returns:

  • (String)


162
163
164
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 162

def body
  @body
end

#call_to_actionString

A label for the button that the user is supposed to click. Corresponds to the JSON property callToAction

Returns:

  • (String)


157
158
159
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 157

def call_to_action
  @call_to_action
end

The URL that the browser/SDK will load when the user clicks the ad. Corresponds to the JSON property clickLinkUrl

Returns:

  • (String)


115
116
117
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 115

def click_link_url
  @click_link_url
end

#click_tracking_urlString

The URL to use for click tracking. Corresponds to the JSON property clickTrackingUrl

Returns:

  • (String)


125
126
127
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 125

def click_tracking_url
  @click_tracking_url
end

#headlineString

A short title for the ad. Corresponds to the JSON property headline

Returns:

  • (String)


146
147
148
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 146

def headline
  @headline
end

#imageGoogle::Apis::Adexchangebuyer2V2beta1::Image

An image resource. You may provide a larger image than was requested, so long as the aspect ratio is preserved. Corresponds to the JSON property image



131
132
133
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 131

def image
  @image
end

#logoGoogle::Apis::Adexchangebuyer2V2beta1::Image

An image resource. You may provide a larger image than was requested, so long as the aspect ratio is preserved. Corresponds to the JSON property logo



110
111
112
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 110

def 
  @logo
end

#price_display_textString

The price of the promoted app including currency info. Corresponds to the JSON property priceDisplayText

Returns:

  • (String)


120
121
122
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 120

def price_display_text
  @price_display_text
end

#star_ratingFloat

The app rating in the app store. Must be in the range [0-5]. Corresponds to the JSON property starRating

Returns:

  • (Float)


167
168
169
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 167

def star_rating
  @star_rating
end

#store_urlString

The URL to the app store to purchase/download the promoted app. Corresponds to the JSON property storeUrl

Returns:

  • (String)


141
142
143
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 141

def store_url
  @store_url
end

#video_urlString

The URL to fetch a native video ad. Corresponds to the JSON property videoUrl

Returns:

  • (String)


104
105
106
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 104

def video_url
  @video_url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 174

def update!(**args)
  @video_url = args[:video_url] if args.key?(:video_url)
  @logo = args[:logo] if args.key?(:logo)
  @click_link_url = args[:click_link_url] if args.key?(:click_link_url)
  @price_display_text = args[:price_display_text] if args.key?(:price_display_text)
  @click_tracking_url = args[:click_tracking_url] if args.key?(:click_tracking_url)
  @image = args[:image] if args.key?(:image)
  @advertiser_name = args[:advertiser_name] if args.key?(:advertiser_name)
  @store_url = args[:store_url] if args.key?(:store_url)
  @headline = args[:headline] if args.key?(:headline)
  @app_icon = args[:app_icon] if args.key?(:app_icon)
  @call_to_action = args[:call_to_action] if args.key?(:call_to_action)
  @body = args[:body] if args.key?(:body)
  @star_rating = args[:star_rating] if args.key?(:star_rating)
end