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.
3974 3975 3976 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 3974 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
3918 3919 3920 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 3918 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
3923 3924 3925 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 3923 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
3928 3929 3930 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 3928 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
3933 3934 3935 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 3933 def final_urls @final_urls end |
#id ⇒ Fixnum
Output only. The ID of the ad.
Corresponds to the JSON property id
3938 3939 3940 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 3938 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
3946 3947 3948 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 3946 def name @name end |
#product_ad ⇒ Google::Apis::Searchads360V0::GoogleAdsSearchads360V0CommonSearchAds360ProductAdInfo
A Search Ads 360 product ad.
Corresponds to the JSON property productAd
3951 3952 3953 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 3951 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 propertyresourceName`
3957 3958 3959 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 3957 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
3962 3963 3964 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 3962 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
3967 3968 3969 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 3967 def text_ad @text_ad end |
#type ⇒ String
Output only. The type of ad.
Corresponds to the JSON property type
3972 3973 3974 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 3972 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3979 3980 3981 3982 3983 3984 3985 3986 3987 3988 3989 3990 3991 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 3979 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 |