class Google::Apis::AdexchangebuyerV1_4::Creative::NativeAd

If nativeAd is set, HTMLSnippet, videoVastXML, and the videoURL outside of nativeAd should not be set. (The videoURL inside nativeAd can 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_4::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_4::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]

video_url[RW]

The URL of the XML VAST for a native ad. Note this is a separate field from resource.video_url. Corresponds to the JSON property `videoURL` @return [String]

Public Class Methods

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

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/adexchangebuyer_v1_4/classes.rb, line 958
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_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)
  @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)
  @video_url = args[:video_url] if args.key?(:video_url)
end