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.
-
#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.
2066 2067 2068 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 2066 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
2035 2036 2037 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 2035 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
2040 2041 2042 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 2040 def final_urls @final_urls end |
#id ⇒ Fixnum
Output only. The ID of the ad.
Corresponds to the JSON property id
2045 2046 2047 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 2045 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
2053 2054 2055 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 2053 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`
2059 2060 2061 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 2059 def resource_name @resource_name end |
#type ⇒ String
Output only. The type of ad.
Corresponds to the JSON property type
2064 2065 2066 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 2064 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2071 2072 2073 2074 2075 2076 2077 2078 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 2071 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) @type = args[:type] if args.key?(:type) end |