class Google::Apis::Adexchangebuyer2V2beta1::NativeContent

Native content for a creative.

Attributes

advertiser_name[RW]

The name of the advertiser or sponsor, to be displayed in the ad creative. Corresponds to the JSON property `advertiserName` @return [String]

app_icon[RW]

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` @return [Google::Apis::Adexchangebuyer2V2beta1::Image]

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]

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` @return [Google::Apis::Adexchangebuyer2V2beta1::Image]

price_display_text[RW]

The price of the promoted app including currency info. Corresponds to the JSON property `priceDisplayText` @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_url[RW]

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

video_url[RW]

The URL to fetch a native video ad. Corresponds to the JSON property `videoUrl` @return [String]

Public Class Methods

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

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

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