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.
-
#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.
-
#resource_name ⇒ String
Immutable.
-
#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.
2120 2121 2122 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 2120 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
2084 2085 2086 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 2084 def display_url @display_url 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
2089 2090 2091 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 2089 def final_urls @final_urls end |
#id ⇒ Fixnum
Output only. The ID of the ad.
Corresponds to the JSON property id
2094 2095 2096 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 2094 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
2102 2103 2104 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 2102 def name @name 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 propertyresourceName`
2108 2109 2110 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 2108 def resource_name @resource_name end |
#text_ad ⇒ Google::Apis::Searchads360V0::GoogleAdsSearchads360V0CommonSearchAds360TextAdInfo
A Search Ads 360 text ad.
Corresponds to the JSON property textAd
2113 2114 2115 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 2113 def text_ad @text_ad end |
#type ⇒ String
Output only. The type of ad.
Corresponds to the JSON property type
2118 2119 2120 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 2118 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2125 2126 2127 2128 2129 2130 2131 2132 2133 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 2125 def update!(**args) @display_url = args[:display_url] if args.key?(:display_url) @final_urls = args[:final_urls] if args.key?(:final_urls) @id = args[:id] if args.key?(:id) @name = args[:name] if args.key?(:name) @resource_name = args[:resource_name] if args.key?(:resource_name) @text_ad = args[:text_ad] if args.key?(:text_ad) @type = args[:type] if args.key?(:type) end |