Class: Google::Apis::RealtimebiddingV1::NativeContent

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

Native content for a creative.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ NativeContent

Returns a new instance of NativeContent.



1406
1407
1408
# File 'lib/google/apis/realtimebidding_v1/classes.rb', line 1406

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)


1341
1342
1343
# File 'lib/google/apis/realtimebidding_v1/classes.rb', line 1341

def advertiser_name
  @advertiser_name
end

#app_iconGoogle::Apis::RealtimebiddingV1::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



1347
1348
1349
# File 'lib/google/apis/realtimebidding_v1/classes.rb', line 1347

def app_icon
  @app_icon
end

#bodyString

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

Returns:

  • (String)


1352
1353
1354
# File 'lib/google/apis/realtimebidding_v1/classes.rb', line 1352

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)


1357
1358
1359
# File 'lib/google/apis/realtimebidding_v1/classes.rb', line 1357

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)


1362
1363
1364
# File 'lib/google/apis/realtimebidding_v1/classes.rb', line 1362

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)


1367
1368
1369
# File 'lib/google/apis/realtimebidding_v1/classes.rb', line 1367

def click_tracking_url
  @click_tracking_url
end

#headlineString

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

Returns:

  • (String)


1372
1373
1374
# File 'lib/google/apis/realtimebidding_v1/classes.rb', line 1372

def headline
  @headline
end

#imageGoogle::Apis::RealtimebiddingV1::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



1378
1379
1380
# File 'lib/google/apis/realtimebidding_v1/classes.rb', line 1378

def image
  @image
end

#logoGoogle::Apis::RealtimebiddingV1::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



1384
1385
1386
# File 'lib/google/apis/realtimebidding_v1/classes.rb', line 1384

def 
  @logo
end

#price_display_textString

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

Returns:

  • (String)


1389
1390
1391
# File 'lib/google/apis/realtimebidding_v1/classes.rb', line 1389

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)


1394
1395
1396
# File 'lib/google/apis/realtimebidding_v1/classes.rb', line 1394

def star_rating
  @star_rating
end

#video_urlString

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

Returns:

  • (String)


1399
1400
1401
# File 'lib/google/apis/realtimebidding_v1/classes.rb', line 1399

def video_url
  @video_url
end

#video_vast_xmlString

The contents of a VAST document for a native video ad. Corresponds to the JSON property videoVastXml

Returns:

  • (String)


1404
1405
1406
# File 'lib/google/apis/realtimebidding_v1/classes.rb', line 1404

def video_vast_xml
  @video_vast_xml
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
# File 'lib/google/apis/realtimebidding_v1/classes.rb', line 1411

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