Class: Google::Apis::Adexchangebuyer2V2beta1::NativeContent

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ NativeContent

Returns a new instance of NativeContent.



2776
2777
2778
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 2776

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#advertiser_nameString

The name of the advertiser or sponsor, to be displayed in the ad creative. Corresponds to the JSON property advertiserName

Returns:

  • (String)


2711
2712
2713
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 2711

def advertiser_name
  @advertiser_name
end

#app_iconGoogle::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



2717
2718
2719
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 2717

def app_icon
  @app_icon
end

#bodyString

A long description of the ad. Corresponds to the JSON property body

Returns:

  • (String)


2722
2723
2724
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 2722

def body
  @body
end

#call_to_actionString

A label for the button that the user is supposed to click. Corresponds to the JSON property callToAction

Returns:

  • (String)


2727
2728
2729
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 2727

def call_to_action
  @call_to_action
end

The URL that the browser/SDK will load when the user clicks the ad. Corresponds to the JSON property clickLinkUrl

Returns:

  • (String)


2732
2733
2734
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 2732

def click_link_url
  @click_link_url
end

#click_tracking_urlString

The URL to use for click tracking. Corresponds to the JSON property clickTrackingUrl

Returns:

  • (String)


2737
2738
2739
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 2737

def click_tracking_url
  @click_tracking_url
end

#headlineString

A short title for the ad. Corresponds to the JSON property headline

Returns:

  • (String)


2742
2743
2744
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 2742

def headline
  @headline
end

#imageGoogle::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



2748
2749
2750
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 2748

def image
  @image
end

#logoGoogle::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



2754
2755
2756
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 2754

def 
  @logo
end

#price_display_textString

The price of the promoted app including currency info. Corresponds to the JSON property priceDisplayText

Returns:

  • (String)


2759
2760
2761
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 2759

def price_display_text
  @price_display_text
end

#star_ratingFloat

The app rating in the app store. Must be in the range [0-5]. Corresponds to the JSON property starRating

Returns:

  • (Float)


2764
2765
2766
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 2764

def star_rating
  @star_rating
end

#store_urlString

The URL to the app store to purchase/download the promoted app. Corresponds to the JSON property storeUrl

Returns:

  • (String)


2769
2770
2771
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 2769

def store_url
  @store_url
end

#video_urlString

The URL to fetch a native video ad. Corresponds to the JSON property videoUrl

Returns:

  • (String)


2774
2775
2776
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 2774

def video_url
  @video_url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 2781

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