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.



2066
2067
2068
# File 'lib/google/apis/searchads360_v0/classes.rb', line 2066

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)


2035
2036
2037
# File 'lib/google/apis/searchads360_v0/classes.rb', line 2035

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>)


2040
2041
2042
# File 'lib/google/apis/searchads360_v0/classes.rb', line 2040

def final_urls
  @final_urls
end

#idFixnum

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

Returns:

  • (Fixnum)


2045
2046
2047
# File 'lib/google/apis/searchads360_v0/classes.rb', line 2045

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)


2053
2054
2055
# File 'lib/google/apis/searchads360_v0/classes.rb', line 2053

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)


2059
2060
2061
# File 'lib/google/apis/searchads360_v0/classes.rb', line 2059

def resource_name
  @resource_name
end

#typeString

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

Returns:

  • (String)


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