class Google::Apis::AdexchangebuyerV1_3::Creative::NativeAd

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

Attributes

advertiser[RW]

Corresponds to the JSON property `advertiser` @return [String]

app_icon[RW]

The app icon, for app download ads. Corresponds to the JSON property `appIcon` @return [Google::Apis::AdexchangebuyerV1_3::Creative::NativeAd::AppIcon]

body[RW]

A long description of the ad. Corresponds to the JSON property `body` @return [String]

call_to_action[RW]

A label for the button that the user is supposed to click. Corresponds to the JSON property `callToAction` @return [String]

click_tracking_url[RW]

The URL to use for click tracking. Corresponds to the JSON property `clickTrackingUrl` @return [String]

headline[RW]

A short title for the ad. Corresponds to the JSON property `headline` @return [String]

image[RW]

A large image. Corresponds to the JSON property `image` @return [Google::Apis::AdexchangebuyerV1_3::Creative::NativeAd::Image]

impression_tracking_url[RW]

The URLs are called when the impression is rendered. Corresponds to the JSON property `impressionTrackingUrl` @return [Array<String>]

price[RW]

The price of the promoted app including the currency info. Corresponds to the JSON property `price` @return [String]

star_rating[RW]

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

store[RW]

The URL to the app store to purchase/download the promoted app. Corresponds to the JSON property `store` @return [String]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/adexchangebuyer_v1_3/classes.rb, line 607
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# 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