Class: BingAdsApi::EditorialError
- Inherits:
-
BatchError
- Object
- DataObject
- BatchError
- BingAdsApi::EditorialError
- 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
Instance Attribute Summary collapse
-
#appaleable ⇒ Object
Returns the value of attribute appaleable.
-
#disapproved_text ⇒ Object
Returns the value of attribute disapproved_text.
-
#location ⇒ Object
Returns the value of attribute location.
-
#publisher_country ⇒ Object
Returns the value of attribute publisher_country.
-
#reason_code ⇒ Object
Returns the value of attribute reason_code.
Attributes inherited from BatchError
#code, #details, #error_code, #index, #message, #type
Instance Method Summary collapse
-
#to_s ⇒ Object
Public : Specified to string method .
Methods inherited from DataObject
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
#appaleable ⇒ Object
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_text ⇒ Object
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 |
#location ⇒ Object
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_country ⇒ Object
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_code ⇒ Object
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_s ⇒ Object
Public : Specified to string method
- Author
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 |