Class: Google::Apis::Searchads360V23::GoogleAdsSearchads360V23ServicesMutateAdResult

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/searchads360_v23/classes.rb,
lib/google/apis/searchads360_v23/representations.rb,
lib/google/apis/searchads360_v23/representations.rb

Overview

The result for the ad mutate.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAdsSearchads360V23ServicesMutateAdResult

Returns a new instance of GoogleAdsSearchads360V23ServicesMutateAdResult.



45450
45451
45452
# File 'lib/google/apis/searchads360_v23/classes.rb', line 45450

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#adGoogle::Apis::Searchads360V23::GoogleAdsSearchads360V23ResourcesAd

An ad. Corresponds to the JSON property ad



45443
45444
45445
# File 'lib/google/apis/searchads360_v23/classes.rb', line 45443

def ad
  @ad
end

#resource_nameString

The resource name returned for successful operations. Corresponds to the JSON property resourceName

Returns:

  • (String)


45448
45449
45450
# File 'lib/google/apis/searchads360_v23/classes.rb', line 45448

def resource_name
  @resource_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



45455
45456
45457
45458
# File 'lib/google/apis/searchads360_v23/classes.rb', line 45455

def update!(**args)
  @ad = args[:ad] if args.key?(:ad)
  @resource_name = args[:resource_name] if args.key?(:resource_name)
end