Class: BingAdsApi::EditorialError

Inherits:
BatchError show all
Defined in:
lib/bing-ads-api/fault/batch_error.rb

Overview

Public : Subclass of BatchError present in AdAdds operations Defines an error object that identifies the entity with the batch of entities that failed editorial review.

Reference : msdn.microsoft.com/en-US/library/bing-ads-overview-editorialerror.aspx

Author

[email protected]

Instance Attribute Summary collapse

Attributes inherited from BatchError

#code, #details, #error_code, #index, #message, #type

Instance Method Summary collapse

Methods inherited from DataObject

#initialize

Methods included from SOAPHasheable

#date_to_hash, #get_attribute_key, #normalize_hash_keys, #object_to_hash, #to_hash

Constructor Details

This class inherits a constructor from BingAdsApi::DataObject

Instance Attribute Details

#appaleableObject

Returns the value of attribute appaleable.



32
33
34
# File 'lib/bing-ads-api/fault/batch_error.rb', line 32

def appaleable
  @appaleable
end

#disapproved_textObject

Returns the value of attribute disapproved_text.



32
33
34
# File 'lib/bing-ads-api/fault/batch_error.rb', line 32

def disapproved_text
  @disapproved_text
end

#locationObject

Returns the value of attribute location.



32
33
34
# File 'lib/bing-ads-api/fault/batch_error.rb', line 32

def location
  @location
end

#publisher_countryObject

Returns the value of attribute publisher_country.



32
33
34
# File 'lib/bing-ads-api/fault/batch_error.rb', line 32

def publisher_country
  @publisher_country
end

#reason_codeObject

Returns the value of attribute reason_code.



32
33
34
# File 'lib/bing-ads-api/fault/batch_error.rb', line 32

def reason_code
  @reason_code
end

Instance Method Details

#to_sObject

Public : Specified to string method

Author

[email protected]



37
38
39
40
41
42
43
44
45
# File 'lib/bing-ads-api/fault/batch_error.rb', line 37

def to_s
	str = super() + "\n"
	str += "\tAppaleable? #{appaleable}\n" if appaleable
	str += "\tDisapproved text: #{disapproved_text}\n" if disapproved_text
	str += "\tLocation: #{location}\n" if location
	str += "\tDisapproved text: #{disapproved_text}\n" if disapproved_text
	str += "\tReason code: #{reason_code} (see: http://msdn.microsoft.com/en-US/library/bing-ads-editorialfailurereasoncodes.aspx)\n" if reason_code

end