Class: Google::Apis::Searchads360V0::GoogleAdsSearchads360V0ResourcesAd
- Inherits:
-
Object
- Object
- Google::Apis::Searchads360V0::GoogleAdsSearchads360V0ResourcesAd
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/searchads360_v0/classes.rb,
lib/google/apis/searchads360_v0/representations.rb,
lib/google/apis/searchads360_v0/representations.rb
Overview
An ad.
Instance Attribute Summary collapse
-
#display_url ⇒ String
The URL that appears in the ad description for some ad formats.
-
#expanded_dynamic_search_ad ⇒ Google::Apis::Searchads360V0::GoogleAdsSearchads360V0CommonSearchAds360ExpandedDynamicSearchAdInfo
An expanded dynamic search ad.
-
#expanded_text_ad ⇒ Google::Apis::Searchads360V0::GoogleAdsSearchads360V0CommonSearchAds360ExpandedTextAdInfo
A Search Ads 360 expanded text ad.
-
#final_urls ⇒ Array<String>
The list of possible final URLs after all cross-domain redirects for the ad.
-
#id ⇒ Fixnum
Output only.
-
#name ⇒ String
Immutable.
-
#product_ad ⇒ Google::Apis::Searchads360V0::GoogleAdsSearchads360V0CommonSearchAds360ProductAdInfo
A Search Ads 360 product ad.
-
#resource_name ⇒ String
Immutable.
-
#responsive_search_ad ⇒ Google::Apis::Searchads360V0::GoogleAdsSearchads360V0CommonSearchAds360ResponsiveSearchAdInfo
A Search Ads 360 responsive search ad.
-
#text_ad ⇒ Google::Apis::Searchads360V0::GoogleAdsSearchads360V0CommonSearchAds360TextAdInfo
A Search Ads 360 text ad.
-
#type ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleAdsSearchads360V0ResourcesAd
constructor
A new instance of GoogleAdsSearchads360V0ResourcesAd.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleAdsSearchads360V0ResourcesAd
Returns a new instance of GoogleAdsSearchads360V0ResourcesAd.
4084 4085 4086 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 4084 def initialize(**args) update!(**args) end |
Instance Attribute Details
#display_url ⇒ String
The URL that appears in the ad description for some ad formats.
Corresponds to the JSON property displayUrl
4028 4029 4030 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 4028 def display_url @display_url end |
#expanded_dynamic_search_ad ⇒ Google::Apis::Searchads360V0::GoogleAdsSearchads360V0CommonSearchAds360ExpandedDynamicSearchAdInfo
An expanded dynamic search ad.
Corresponds to the JSON property expandedDynamicSearchAd
4033 4034 4035 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 4033 def @expanded_dynamic_search_ad end |
#expanded_text_ad ⇒ Google::Apis::Searchads360V0::GoogleAdsSearchads360V0CommonSearchAds360ExpandedTextAdInfo
A Search Ads 360 expanded text ad.
Corresponds to the JSON property expandedTextAd
4038 4039 4040 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 4038 def @expanded_text_ad end |
#final_urls ⇒ Array<String>
The list of possible final URLs after all cross-domain redirects for the ad.
Corresponds to the JSON property finalUrls
4043 4044 4045 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 4043 def final_urls @final_urls end |
#id ⇒ Fixnum
Output only. The ID of the ad.
Corresponds to the JSON property id
4048 4049 4050 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 4048 def id @id end |
#name ⇒ String
Immutable. The name of the ad. This is only used to be able to identify the ad.
It does not need to be unique and does not affect the served ad. The name
field is currently only supported for DisplayUploadAd, ImageAd,
ShoppingComparisonListingAd and VideoAd.
Corresponds to the JSON property name
4056 4057 4058 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 4056 def name @name end |
#product_ad ⇒ Google::Apis::Searchads360V0::GoogleAdsSearchads360V0CommonSearchAds360ProductAdInfo
A Search Ads 360 product ad.
Corresponds to the JSON property productAd
4061 4062 4063 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 4061 def product_ad @product_ad end |
#resource_name ⇒ String
Immutable. The resource name of the ad. Ad resource names have the form:
customers/
customer_id/ads/
ad_id`
Corresponds to the JSON property
resourceName`
4067 4068 4069 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 4067 def resource_name @resource_name end |
#responsive_search_ad ⇒ Google::Apis::Searchads360V0::GoogleAdsSearchads360V0CommonSearchAds360ResponsiveSearchAdInfo
A Search Ads 360 responsive search ad.
Corresponds to the JSON property responsiveSearchAd
4072 4073 4074 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 4072 def responsive_search_ad @responsive_search_ad end |
#text_ad ⇒ Google::Apis::Searchads360V0::GoogleAdsSearchads360V0CommonSearchAds360TextAdInfo
A Search Ads 360 text ad.
Corresponds to the JSON property textAd
4077 4078 4079 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 4077 def text_ad @text_ad end |
#type ⇒ String
Output only. The type of ad.
Corresponds to the JSON property type
4082 4083 4084 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 4082 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4089 4090 4091 4092 4093 4094 4095 4096 4097 4098 4099 4100 4101 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 4089 def update!(**args) @display_url = args[:display_url] if args.key?(:display_url) @expanded_dynamic_search_ad = args[:expanded_dynamic_search_ad] if args.key?(:expanded_dynamic_search_ad) @expanded_text_ad = args[:expanded_text_ad] if args.key?(:expanded_text_ad) @final_urls = args[:final_urls] if args.key?(:final_urls) @id = args[:id] if args.key?(:id) @name = args[:name] if args.key?(:name) @product_ad = args[:product_ad] if args.key?(:product_ad) @resource_name = args[:resource_name] if args.key?(:resource_name) @responsive_search_ad = args[:responsive_search_ad] if args.key?(:responsive_search_ad) @text_ad = args[:text_ad] if args.key?(:text_ad) @type = args[:type] if args.key?(:type) end |