Class: Google::Apis::Searchads360V0::GoogleAdsSearchads360V0ResourcesAd

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

Instance Method Summary collapse

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_urlString

The URL that appears in the ad description for some ad formats. Corresponds to the JSON property displayUrl

Returns:

  • (String)


2084
2085
2086
# File 'lib/google/apis/searchads360_v0/classes.rb', line 2084

def display_url
  @display_url
end

#final_urlsArray<String>

The list of possible final URLs after all cross-domain redirects for the ad. Corresponds to the JSON property finalUrls

Returns:

  • (Array<String>)


2089
2090
2091
# File 'lib/google/apis/searchads360_v0/classes.rb', line 2089

def final_urls
  @final_urls
end

#idFixnum

Output only. The ID of the ad. Corresponds to the JSON property id

Returns:

  • (Fixnum)


2094
2095
2096
# File 'lib/google/apis/searchads360_v0/classes.rb', line 2094

def id
  @id
end

#nameString

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

Returns:

  • (String)


2102
2103
2104
# File 'lib/google/apis/searchads360_v0/classes.rb', line 2102

def name
  @name
end

#resource_nameString

Immutable. The resource name of the ad. Ad resource names have the form: customers/customer_id/ads/ad_id` Corresponds to the JSON propertyresourceName`

Returns:

  • (String)


2108
2109
2110
# File 'lib/google/apis/searchads360_v0/classes.rb', line 2108

def resource_name
  @resource_name
end

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

#typeString

Output only. The type of ad. Corresponds to the JSON property type

Returns:

  • (String)


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