Class: Google::Apis::Adexchangebuyer2V2beta1::NativeContent
- Inherits:
-
Object
- Object
- Google::Apis::Adexchangebuyer2V2beta1::NativeContent
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/adexchangebuyer2_v2beta1/classes.rb,
generated/google/apis/adexchangebuyer2_v2beta1/representations.rb,
generated/google/apis/adexchangebuyer2_v2beta1/representations.rb
Overview
Native content for a creative.
Instance Attribute Summary collapse
-
#advertiser_name ⇒ String
The name of the advertiser or sponsor, to be displayed in the ad creative.
-
#app_icon ⇒ Google::Apis::Adexchangebuyer2V2beta1::Image
An image resource.
-
#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::Adexchangebuyer2V2beta1::Image
An image resource.
-
#logo ⇒ Google::Apis::Adexchangebuyer2V2beta1::Image
An image resource.
-
#price_display_text ⇒ String
The price of the promoted app including currency info.
-
#star_rating ⇒ Float
The app rating in the app store.
-
#store_url ⇒ String
The URL to the app store to purchase/download the promoted app.
-
#video_url ⇒ String
The URL to fetch a native video ad.
Instance Method Summary collapse
-
#initialize(**args) ⇒ NativeContent
constructor
A new instance of NativeContent.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ NativeContent
Returns a new instance of NativeContent
116 117 118 |
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 116 def initialize(**args) update!(**args) end |
Instance Attribute Details
#advertiser_name ⇒ String
The name of the advertiser or sponsor, to be displayed in the ad creative.
Corresponds to the JSON property advertiserName
93 94 95 |
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 93 def advertiser_name @advertiser_name end |
#app_icon ⇒ Google::Apis::Adexchangebuyer2V2beta1::Image
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
109 110 111 |
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 109 def app_icon @app_icon end |
#body ⇒ String
A long description of the ad.
Corresponds to the JSON property body
51 52 53 |
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 51 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
114 115 116 |
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 114 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
66 67 68 |
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 66 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
82 83 84 |
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 82 def click_tracking_url @click_tracking_url end |
#headline ⇒ String
A short title for the ad.
Corresponds to the JSON property headline
103 104 105 |
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 103 def headline @headline end |
#image ⇒ Google::Apis::Adexchangebuyer2V2beta1::Image
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
88 89 90 |
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 88 def image @image end |
#logo ⇒ Google::Apis::Adexchangebuyer2V2beta1::Image
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 logo
72 73 74 |
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 72 def logo @logo end |
#price_display_text ⇒ String
The price of the promoted app including currency info.
Corresponds to the JSON property priceDisplayText
77 78 79 |
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 77 def price_display_text @price_display_text end |
#star_rating ⇒ Float
The app rating in the app store. Must be in the range [0-5].
Corresponds to the JSON property starRating
56 57 58 |
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 56 def @star_rating end |
#store_url ⇒ String
The URL to the app store to purchase/download the promoted app.
Corresponds to the JSON property storeUrl
98 99 100 |
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 98 def store_url @store_url end |
#video_url ⇒ String
The URL to fetch a native video ad.
Corresponds to the JSON property videoUrl
61 62 63 |
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 61 def video_url @video_url end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 |
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 121 def update!(**args) @body = args[:body] if args.key?(:body) @star_rating = args[:star_rating] if args.key?(:star_rating) @video_url = args[:video_url] if args.key?(:video_url) @click_link_url = args[:click_link_url] if args.key?(:click_link_url) @logo = args[:logo] if args.key?(:logo) @price_display_text = args[:price_display_text] if args.key?(:price_display_text) @click_tracking_url = args[:click_tracking_url] if args.key?(:click_tracking_url) @image = args[:image] if args.key?(:image) @advertiser_name = args[:advertiser_name] if args.key?(:advertiser_name) @store_url = args[:store_url] if args.key?(:store_url) @headline = args[:headline] if args.key?(:headline) @app_icon = args[:app_icon] if args.key?(:app_icon) @call_to_action = args[:call_to_action] if args.key?(:call_to_action) end |