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
Corresponds to the JSON property `advertiser` @return [String]
The app icon, for app download ads. Corresponds to the JSON property `appIcon` @return [Google::Apis::AdexchangebuyerV1_4::Creative::NativeAd::AppIcon]
A long description of the ad. Corresponds to the JSON property `body` @return [String]
A label for the button that the user is supposed to click. Corresponds to the JSON property `callToAction` @return [String]
The URL that the browser/SDK will load when the user clicks the ad. Corresponds to the JSON property `clickLinkUrl` @return [String]
The URL to use for click tracking. Corresponds to the JSON property `clickTrackingUrl` @return [String]
A short title for the ad. Corresponds to the JSON property `headline` @return [String]
A large image. Corresponds to the JSON property `image` @return [Google::Apis::AdexchangebuyerV1_4::Creative::NativeAd::Image]
The URLs are called when the impression is rendered. Corresponds to the JSON property `impressionTrackingUrl` @return [Array<String>]
A smaller image, for the advertiser logo. Corresponds to the JSON property `logo` @return [Google::Apis::AdexchangebuyerV1_4::Creative::NativeAd::Logo]
The price of the promoted app including the currency info. Corresponds to the JSON property `price` @return [String]
The app rating in the app store. Must be in the range [0-5]. Corresponds to the JSON property `starRating` @return [Float]
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
# File lib/google/apis/adexchangebuyer_v1_4/classes.rb, line 953 def initialize(**args) update!(**args) end
Public Instance Methods
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