Class: Google::Apis::DfareportingV4::ConversionError

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

Overview

The error code and description for a conversion that failed to insert or update.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ConversionError

Returns a new instance of ConversionError.



2875
2876
2877
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 2875

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

Instance Attribute Details

#codeString

The error code. Corresponds to the JSON property code

Returns:

  • (String)


2862
2863
2864
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 2862

def code
  @code
end

#kindString

Identifies what kind of resource this is. Value: the fixed string " dfareporting#conversionError". Corresponds to the JSON property kind

Returns:

  • (String)


2868
2869
2870
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 2868

def kind
  @kind
end

#messageString

A description of the error. Corresponds to the JSON property message

Returns:

  • (String)


2873
2874
2875
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 2873

def message
  @message
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2880
2881
2882
2883
2884
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 2880

def update!(**args)
  @code = args[:code] if args.key?(:code)
  @kind = args[:kind] if args.key?(:kind)
  @message = args[:message] if args.key?(:message)
end