Class: Google::Apis::AdexchangebuyerV1_4::Creative::NativeAd
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::AdexchangebuyerV1_4::Creative::NativeAd
 
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/adexchangebuyer_v1_4/classes.rb,
 generated/google/apis/adexchangebuyer_v1_4/representations.rb,
 generated/google/apis/adexchangebuyer_v1_4/representations.rb
Overview
If nativeAd is set, HTMLSnippet, videoVastXML, and the videoURL outside of nativeAd should not be set. (The videoURL inside nativeAd can be set.)
Defined Under Namespace
Instance Attribute Summary collapse
- 
  
    
      #advertiser  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Corresponds to the JSON property advertiser.
- 
  
    
      #app_icon  ⇒ Google::Apis::AdexchangebuyerV1_4::Creative::NativeAd::AppIcon 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The app icon, for app download ads. 
- 
  
    
      #body  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    A long description of the ad. 
- 
  
    
      #call_to_action  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    A label for the button that the user is supposed to click. 
- 
  
    
      #click_link_url  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The URL that the browser/SDK will load when the user clicks the ad. 
- 
  
    
      #click_tracking_url  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The URL to use for click tracking. 
- 
  
    
      #headline  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    A short title for the ad. 
- 
  
    
      #image  ⇒ Google::Apis::AdexchangebuyerV1_4::Creative::NativeAd::Image 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    A large image. 
- 
  
    
      #impression_tracking_url  ⇒ Array<String> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The URLs are called when the impression is rendered. 
- 
  
    
      #logo  ⇒ Google::Apis::AdexchangebuyerV1_4::Creative::NativeAd::Logo 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    A smaller image, for the advertiser logo. 
- 
  
    
      #price  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The price of the promoted app including the currency info. 
- 
  
    
      #star_rating  ⇒ Float 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The app rating in the app store. 
- 
  
    
      #store  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The URL to the app store to purchase/download the promoted app. 
- 
  
    
      #video_url  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The URL of the XML VAST for a native ad. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ NativeAd 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of NativeAd. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ NativeAd
Returns a new instance of NativeAd
| 900 901 902 | # File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 900 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#advertiser ⇒ String
Corresponds to the JSON property advertiser
| 832 833 834 | # File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 832 def advertiser @advertiser end | 
#app_icon ⇒ Google::Apis::AdexchangebuyerV1_4::Creative::NativeAd::AppIcon
The app icon, for app download ads.
Corresponds to the JSON property appIcon
| 837 838 839 | # File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 837 def app_icon @app_icon end | 
#body ⇒ String
A long description of the ad.
Corresponds to the JSON property body
| 842 843 844 | # File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 842 def body @body end | 
#call_to_action ⇒ String
A label for the button that the user is supposed to click.
Corresponds to the JSON property callToAction
| 847 848 849 | # File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 847 def call_to_action @call_to_action end | 
#click_link_url ⇒ String
The URL that the browser/SDK will load when the user clicks the ad.
Corresponds to the JSON property clickLinkUrl
| 852 853 854 | # File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 852 def click_link_url @click_link_url end | 
#click_tracking_url ⇒ String
The URL to use for click tracking.
Corresponds to the JSON property clickTrackingUrl
| 857 858 859 | # File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 857 def click_tracking_url @click_tracking_url end | 
#headline ⇒ String
A short title for the ad.
Corresponds to the JSON property headline
| 862 863 864 | # File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 862 def headline @headline end | 
#image ⇒ Google::Apis::AdexchangebuyerV1_4::Creative::NativeAd::Image
A large image.
Corresponds to the JSON property image
| 867 868 869 | # File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 867 def image @image end | 
#impression_tracking_url ⇒ Array<String>
The URLs are called when the impression is rendered.
Corresponds to the JSON property impressionTrackingUrl
| 872 873 874 | # File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 872 def impression_tracking_url @impression_tracking_url end | 
#logo ⇒ Google::Apis::AdexchangebuyerV1_4::Creative::NativeAd::Logo
A smaller image, for the advertiser logo.
Corresponds to the JSON property logo
| 877 878 879 | # File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 877 def logo @logo end | 
#price ⇒ String
The price of the promoted app including the currency info.
Corresponds to the JSON property price
| 882 883 884 | # File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 882 def price @price end | 
#star_rating ⇒ Float
The app rating in the app store. Must be in the range [0-5].
Corresponds to the JSON property starRating
| 887 888 889 | # File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 887 def @star_rating end | 
#store ⇒ String
The URL to the app store to purchase/download the promoted app.
Corresponds to the JSON property store
| 892 893 894 | # File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 892 def store @store end | 
#video_url ⇒ String
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
| 898 899 900 | # File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 898 def video_url @video_url end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 | # File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 905 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) @store = args[:store] if args.key?(:store) @video_url = args[:video_url] if args.key?(:video_url) end |