Class: BingAdsApi::Campaign
- Inherits:
-
DataObject
- Object
- DataObject
- BingAdsApi::Campaign
- Includes:
- BudgetLimitType, CampaignStatus, PricingModel, TimeZone
- Defined in:
- lib/bing-ads-api/data/campaign.rb
Overview
Public : Define a campaign
- Author
Examples
campaign = BingAdsApi::Campaign.new(
:budget_type => BingAdsApi::Campaign::DAILY_BUDGET_STANDARD,
:conversion_tracking_enabled => "false",
:daily_budget => 2000,
:daylight_saving => "false",
:description => name + " first description",
:monthly_budget => 5400,
:name => name + " first name",
:status => BingAdsApi::Campaign::PAUSED,
:time_zone => BingAdsApi::Campaign::SANTIAGO)
# => <BingAdsApi::Campaign>
Instance Attribute Summary collapse
-
#budget_type ⇒ Object
Returns the value of attribute budget_type.
-
#conversion_tracking_enabled ⇒ Object
Returns the value of attribute conversion_tracking_enabled.
-
#daily_budget ⇒ Object
Returns the value of attribute daily_budget.
-
#daylight_saving ⇒ Object
Returns the value of attribute daylight_saving.
-
#description ⇒ Object
Returns the value of attribute description.
-
#id ⇒ Object
Returns the value of attribute id.
-
#monthly_budget ⇒ Object
Returns the value of attribute monthly_budget.
-
#name ⇒ Object
Returns the value of attribute name.
-
#status ⇒ Object
Returns the value of attribute status.
-
#time_zone ⇒ Object
Returns the value of attribute time_zone.
Method Summary
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
#budget_type ⇒ Object
Returns the value of attribute budget_type.
28 29 30 |
# File 'lib/bing-ads-api/data/campaign.rb', line 28 def budget_type @budget_type end |
#conversion_tracking_enabled ⇒ Object
Returns the value of attribute conversion_tracking_enabled.
28 29 30 |
# File 'lib/bing-ads-api/data/campaign.rb', line 28 def conversion_tracking_enabled @conversion_tracking_enabled end |
#daily_budget ⇒ Object
Returns the value of attribute daily_budget.
28 29 30 |
# File 'lib/bing-ads-api/data/campaign.rb', line 28 def daily_budget @daily_budget end |
#daylight_saving ⇒ Object
Returns the value of attribute daylight_saving.
28 29 30 |
# File 'lib/bing-ads-api/data/campaign.rb', line 28 def daylight_saving @daylight_saving end |
#description ⇒ Object
Returns the value of attribute description.
28 29 30 |
# File 'lib/bing-ads-api/data/campaign.rb', line 28 def description @description end |
#id ⇒ Object
Returns the value of attribute id.
28 29 30 |
# File 'lib/bing-ads-api/data/campaign.rb', line 28 def id @id end |
#monthly_budget ⇒ Object
Returns the value of attribute monthly_budget.
28 29 30 |
# File 'lib/bing-ads-api/data/campaign.rb', line 28 def monthly_budget @monthly_budget end |
#name ⇒ Object
Returns the value of attribute name.
28 29 30 |
# File 'lib/bing-ads-api/data/campaign.rb', line 28 def name @name end |
#status ⇒ Object
Returns the value of attribute status.
28 29 30 |
# File 'lib/bing-ads-api/data/campaign.rb', line 28 def status @status end |
#time_zone ⇒ Object
Returns the value of attribute time_zone.
28 29 30 |
# File 'lib/bing-ads-api/data/campaign.rb', line 28 def time_zone @time_zone end |