Class: BingAdsApi::TextAd

Inherits:
Ad show all
Defined in:
lib/bing-ads-api/data/ad.rb

Overview

Instance Attribute Summary collapse

Attributes inherited from Ad

#device_preference, #editorial_status, #id, #status, #type

Instance Method Summary collapse

Methods inherited from DataObject

#initialize, #to_s

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_urlObject

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_urlObject

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

#textObject

Returns the value of attribute text.



40
41
42
# File 'lib/bing-ads-api/data/ad.rb', line 40

def text
  @text
end

#titleObject

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

[email protected]

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