Class: Google::Apis::AdexchangebuyerV1_3::Creative::NativeAd

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

Overview

If nativeAd is set, HTMLSnippet and videoURL should not be set.

Defined Under Namespace

Classes: AppIcon, Image, Logo

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ NativeAd

Returns a new instance of NativeAd.


607
608
609
# File 'generated/google/apis/adexchangebuyer_v1_3/classes.rb', line 607

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

Instance Attribute Details

#advertiserString

Corresponds to the JSON property advertiser

Returns:

  • (String)

550
551
552
# File 'generated/google/apis/adexchangebuyer_v1_3/classes.rb', line 550

def advertiser
  @advertiser
end

#app_iconGoogle::Apis::AdexchangebuyerV1_3::Creative::NativeAd::AppIcon

The app icon, for app download ads. Corresponds to the JSON property appIcon


555
556
557
# File 'generated/google/apis/adexchangebuyer_v1_3/classes.rb', line 555

def app_icon
  @app_icon
end

#bodyString

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

Returns:

  • (String)

560
561
562
# File 'generated/google/apis/adexchangebuyer_v1_3/classes.rb', line 560

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)

565
566
567
# File 'generated/google/apis/adexchangebuyer_v1_3/classes.rb', line 565

def call_to_action
  @call_to_action
end

#click_tracking_urlString

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

Returns:

  • (String)

570
571
572
# File 'generated/google/apis/adexchangebuyer_v1_3/classes.rb', line 570

def click_tracking_url
  @click_tracking_url
end

#headlineString

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

Returns:

  • (String)

575
576
577
# File 'generated/google/apis/adexchangebuyer_v1_3/classes.rb', line 575

def headline
  @headline
end

#imageGoogle::Apis::AdexchangebuyerV1_3::Creative::NativeAd::Image

A large image. Corresponds to the JSON property image


580
581
582
# File 'generated/google/apis/adexchangebuyer_v1_3/classes.rb', line 580

def image
  @image
end

#impression_tracking_urlArray<String>

The URLs are called when the impression is rendered. Corresponds to the JSON property impressionTrackingUrl

Returns:

  • (Array<String>)

585
586
587
# File 'generated/google/apis/adexchangebuyer_v1_3/classes.rb', line 585

def impression_tracking_url
  @impression_tracking_url
end

#logoGoogle::Apis::AdexchangebuyerV1_3::Creative::NativeAd::Logo

A smaller image, for the advertiser logo. Corresponds to the JSON property logo


590
591
592
# File 'generated/google/apis/adexchangebuyer_v1_3/classes.rb', line 590

def 
  @logo
end

#priceString

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

Returns:

  • (String)

595
596
597
# File 'generated/google/apis/adexchangebuyer_v1_3/classes.rb', line 595

def price
  @price
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)

600
601
602
# File 'generated/google/apis/adexchangebuyer_v1_3/classes.rb', line 600

def star_rating
  @star_rating
end

#storeString

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

Returns:

  • (String)

605
606
607
# File 'generated/google/apis/adexchangebuyer_v1_3/classes.rb', line 605

def store
  @store
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


612
613
614
615
616
617
618
619
620
621
622
623
624
625
# File 'generated/google/apis/adexchangebuyer_v1_3/classes.rb', line 612

def update!(**args)
  @advertiser = args[:advertiser] if args.key?(:advertiser)
  @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_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)
  @impression_tracking_url = args[:impression_tracking_url] if args.key?(:impression_tracking_url)
  @logo = args[:logo] if args.key?(:logo)
  @price = args[:price] if args.key?(:price)
  @star_rating = args[:star_rating] if args.key?(:star_rating)
  @store = args[:store] if args.key?(:store)
end