Class: BingAdsApi::TextAd
- Inherits:
-
Ad
- Object
- DataObject
- Ad
- BingAdsApi::TextAd
- Defined in:
- lib/bing-ads-api/data/ad.rb
Overview
Public : Defines a text ad.
Reference: msdn.microsoft.com/en-US/library/bing-ads-campaign-management-textad.aspx
- Author
Instance Attribute Summary collapse
-
#destination_url ⇒ Object
Returns the value of attribute destination_url.
-
#display_url ⇒ Object
Returns the value of attribute display_url.
-
#text ⇒ Object
Returns the value of attribute text.
-
#title ⇒ Object
Returns the value of attribute title.
Attributes inherited from Ad
#device_preference, #editorial_status, #id, #status, #type
Instance Method Summary collapse
-
#to_hash(keys = :underscore) ⇒ Object
Public : Specification of DataObject#to_hash method that ads the type attribute based on this specific class .
Methods inherited from DataObject
Methods included from SOAPHasheable
#date_to_hash, #get_attribute_key, #normalize_hash_keys, #object_to_hash
Constructor Details
This class inherits a constructor from BingAdsApi::DataObject
Instance Attribute Details
#destination_url ⇒ Object
Returns the value of attribute destination_url.
40 41 42 |
# File 'lib/bing-ads-api/data/ad.rb', line 40 def destination_url @destination_url end |
#display_url ⇒ Object
Returns the value of attribute display_url.
40 41 42 |
# File 'lib/bing-ads-api/data/ad.rb', line 40 def display_url @display_url end |
#text ⇒ Object
Returns the value of attribute text.
40 41 42 |
# File 'lib/bing-ads-api/data/ad.rb', line 40 def text @text end |
#title ⇒ Object
Returns the value of attribute title.
40 41 42 |
# File 'lib/bing-ads-api/data/ad.rb', line 40 def title @title end |
Instance Method Details
#to_hash(keys = :underscore) ⇒ Object
Public : Specification of DataObject#to_hash method that ads the type attribute based on this specific class
- Author
keys - specifies the keys case
- Returns
-
Hash
52 53 54 55 56 |
# File 'lib/bing-ads-api/data/ad.rb', line 52 def to_hash(keys = :underscore) hash = super(keys) hash[get_attribute_key("type", keys)] = "Text" return hash end |