Class: Google::Apis::Searchads360V23::GoogleAdsSearchads360V23ErrorsSearchAds360Error

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

Search Ads 360-specific error.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAdsSearchads360V23ErrorsSearchAds360Error

Returns a new instance of GoogleAdsSearchads360V23ErrorsSearchAds360Error.



14739
14740
14741
# File 'lib/google/apis/searchads360_v23/classes.rb', line 14739

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

Instance Attribute Details

#detailsGoogle::Apis::Searchads360V23::GoogleAdsSearchads360V23ErrorsErrorDetails

Additional error details. Corresponds to the JSON property details



14717
14718
14719
# File 'lib/google/apis/searchads360_v23/classes.rb', line 14717

def details
  @details
end

#error_codeGoogle::Apis::Searchads360V23::GoogleAdsSearchads360V23ErrorsErrorCode

The error reason represented by type and enum. Corresponds to the JSON property errorCode



14722
14723
14724
# File 'lib/google/apis/searchads360_v23/classes.rb', line 14722

def error_code
  @error_code
end

#locationGoogle::Apis::Searchads360V23::GoogleAdsSearchads360V23ErrorsErrorLocation

Describes the part of the request proto that caused the error. Corresponds to the JSON property location



14727
14728
14729
# File 'lib/google/apis/searchads360_v23/classes.rb', line 14727

def location
  @location
end

#messageString

A human-readable description of the error. Corresponds to the JSON property message

Returns:

  • (String)


14732
14733
14734
# File 'lib/google/apis/searchads360_v23/classes.rb', line 14732

def message
  @message
end

#triggerGoogle::Apis::Searchads360V23::GoogleAdsSearchads360V23CommonValue

A generic data container. Corresponds to the JSON property trigger



14737
14738
14739
# File 'lib/google/apis/searchads360_v23/classes.rb', line 14737

def trigger
  @trigger
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



14744
14745
14746
14747
14748
14749
14750
# File 'lib/google/apis/searchads360_v23/classes.rb', line 14744

def update!(**args)
  @details = args[:details] if args.key?(:details)
  @error_code = args[:error_code] if args.key?(:error_code)
  @location = args[:location] if args.key?(:location)
  @message = args[:message] if args.key?(:message)
  @trigger = args[:trigger] if args.key?(:trigger)
end