Class: BingAdsApi::MobileAd
- Inherits:
-
Ad
- Object
- DataObject
- Ad
- BingAdsApi::MobileAd
- Defined in:
- lib/bing-ads-api/data/ad.rb
Overview
Public : Defines a mobile ad. A mobile ad is displayed to a user when the ad is viewed on a low-fi mobile device.
Reference: msdn.microsoft.com/en-US/library/bing-ads-campaign-management-mobilead.aspx
- Author
Instance Attribute Summary collapse
-
#business_name ⇒ Object
Returns the value of attribute business_name.
-
#destination_url ⇒ Object
Returns the value of attribute destination_url.
-
#display_url ⇒ Object
Returns the value of attribute display_url.
-
#phone_number ⇒ Object
Returns the value of attribute phone_number.
-
#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
#business_name ⇒ Object
Returns the value of attribute business_name.
70 71 72 |
# File 'lib/bing-ads-api/data/ad.rb', line 70 def business_name @business_name end |
#destination_url ⇒ Object
Returns the value of attribute destination_url.
70 71 72 |
# File 'lib/bing-ads-api/data/ad.rb', line 70 def destination_url @destination_url end |
#display_url ⇒ Object
Returns the value of attribute display_url.
70 71 72 |
# File 'lib/bing-ads-api/data/ad.rb', line 70 def display_url @display_url end |
#phone_number ⇒ Object
Returns the value of attribute phone_number.
70 71 72 |
# File 'lib/bing-ads-api/data/ad.rb', line 70 def phone_number @phone_number end |
#text ⇒ Object
Returns the value of attribute text.
70 71 72 |
# File 'lib/bing-ads-api/data/ad.rb', line 70 def text @text end |
#title ⇒ Object
Returns the value of attribute title.
70 71 72 |
# File 'lib/bing-ads-api/data/ad.rb', line 70 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
84 85 86 87 88 |
# File 'lib/bing-ads-api/data/ad.rb', line 84 def to_hash(keys = :underscore) hash = super(keys) hash[get_attribute_key("type", keys)] = "Mobile" return hash end |