Class: BingAdsApi::Ad

Inherits:
DataObject show all
Includes:
AdEditorialStatus, AdStatus, AdType
Defined in:
lib/bing-ads-api/data/ad.rb

Overview

Public : Defines the base object of an ad. Do not instantiate this object. Instead you can instantiate the BingAdsApi::TextAd, BingAdsApi::MobileAd, or BingAdsApi::ProductAd object that derives from this object.

Reference: msdn.microsoft.com/en-US/library/bing-ads-campaign-management-ad.aspx

Author

[email protected]

Direct Known Subclasses

MobileAd, ProductAd, TextAd

Instance Attribute Summary collapse

Method Summary

Methods inherited from DataObject

#initialize, #to_s

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

#device_preferenceObject

Returns the value of attribute device_preference.



21
22
23
# File 'lib/bing-ads-api/data/ad.rb', line 21

def device_preference
  @device_preference
end

#editorial_statusObject

Returns the value of attribute editorial_status.



21
22
23
# File 'lib/bing-ads-api/data/ad.rb', line 21

def editorial_status
  @editorial_status
end

#idObject

Returns the value of attribute id.



21
22
23
# File 'lib/bing-ads-api/data/ad.rb', line 21

def id
  @id
end

#statusObject

Returns the value of attribute status.



21
22
23
# File 'lib/bing-ads-api/data/ad.rb', line 21

def status
  @status
end

#typeObject

Returns the value of attribute type.



21
22
23
# File 'lib/bing-ads-api/data/ad.rb', line 21

def type
  @type
end