Class: Google::Apis::AdexchangebuyerV1_3::Creative::NativeAd
- Inherits:
-
Object
- Object
- Google::Apis::AdexchangebuyerV1_3::Creative::NativeAd
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/adexchangebuyer_v1_3/classes.rb,
generated/google/apis/adexchangebuyer_v1_3/representations.rb,
generated/google/apis/adexchangebuyer_v1_3/representations.rb
Overview
If nativeAd is set, HTMLSnippet and videoURL should not be set.
Defined Under Namespace
Instance Attribute Summary collapse
-
#advertiser ⇒ String
Corresponds to the JSON property
advertiser
. -
#app_icon ⇒ Google::Apis::AdexchangebuyerV1_3::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_tracking_url ⇒ String
The URL to use for click tracking.
-
#headline ⇒ String
A short title for the ad.
-
#image ⇒ Google::Apis::AdexchangebuyerV1_3::Creative::NativeAd::Image
A large image.
-
#impression_tracking_url ⇒ Array<String>
The URLs are called when the impression is rendered.
-
#logo ⇒ Google::Apis::AdexchangebuyerV1_3::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.
Instance Method Summary collapse
-
#initialize(**args) ⇒ NativeAd
constructor
A new instance of NativeAd.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ NativeAd
Returns a new instance of NativeAd.
648 649 650 |
# File 'generated/google/apis/adexchangebuyer_v1_3/classes.rb', line 648 def initialize(**args) update!(**args) end |
Instance Attribute Details
#advertiser ⇒ String
Corresponds to the JSON property advertiser
596 597 598 |
# File 'generated/google/apis/adexchangebuyer_v1_3/classes.rb', line 596 def advertiser @advertiser end |
#app_icon ⇒ Google::Apis::AdexchangebuyerV1_3::Creative::NativeAd::AppIcon
The app icon, for app download ads.
Corresponds to the JSON property appIcon
601 602 603 |
# File 'generated/google/apis/adexchangebuyer_v1_3/classes.rb', line 601 def app_icon @app_icon end |
#body ⇒ String
A long description of the ad.
Corresponds to the JSON property body
606 607 608 |
# File 'generated/google/apis/adexchangebuyer_v1_3/classes.rb', line 606 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
611 612 613 |
# File 'generated/google/apis/adexchangebuyer_v1_3/classes.rb', line 611 def call_to_action @call_to_action end |
#click_tracking_url ⇒ String
The URL to use for click tracking.
Corresponds to the JSON property clickTrackingUrl
616 617 618 |
# File 'generated/google/apis/adexchangebuyer_v1_3/classes.rb', line 616 def click_tracking_url @click_tracking_url end |
#headline ⇒ String
A short title for the ad.
Corresponds to the JSON property headline
621 622 623 |
# File 'generated/google/apis/adexchangebuyer_v1_3/classes.rb', line 621 def headline @headline end |
#image ⇒ Google::Apis::AdexchangebuyerV1_3::Creative::NativeAd::Image
A large image.
Corresponds to the JSON property image
626 627 628 |
# File 'generated/google/apis/adexchangebuyer_v1_3/classes.rb', line 626 def image @image end |
#impression_tracking_url ⇒ Array<String>
The URLs are called when the impression is rendered.
Corresponds to the JSON property impressionTrackingUrl
631 632 633 |
# File 'generated/google/apis/adexchangebuyer_v1_3/classes.rb', line 631 def impression_tracking_url @impression_tracking_url end |
#logo ⇒ Google::Apis::AdexchangebuyerV1_3::Creative::NativeAd::Logo
A smaller image, for the advertiser logo.
Corresponds to the JSON property logo
636 637 638 |
# File 'generated/google/apis/adexchangebuyer_v1_3/classes.rb', line 636 def logo @logo end |
#price ⇒ String
The price of the promoted app including the currency info.
Corresponds to the JSON property price
641 642 643 |
# File 'generated/google/apis/adexchangebuyer_v1_3/classes.rb', line 641 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
646 647 648 |
# File 'generated/google/apis/adexchangebuyer_v1_3/classes.rb', line 646 def @star_rating end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
653 654 655 656 657 658 659 660 661 662 663 664 665 |
# File 'generated/google/apis/adexchangebuyer_v1_3/classes.rb', line 653 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_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) end |