Class: BingAdsApi::Campaign

Inherits:
DataObject show all
Includes:
BudgetLimitType, CampaignStatus, PricingModel, TimeZone
Defined in:
lib/bing-ads-api/data/campaign.rb

Overview

Public : Define a campaign

Author

[email protected]

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

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

#budget_typeObject

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_enabledObject

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_budgetObject

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_savingObject

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

#descriptionObject

Returns the value of attribute description.



28
29
30
# File 'lib/bing-ads-api/data/campaign.rb', line 28

def description
  @description
end

#idObject

Returns the value of attribute id.



28
29
30
# File 'lib/bing-ads-api/data/campaign.rb', line 28

def id
  @id
end

#monthly_budgetObject

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

#nameObject

Returns the value of attribute name.



28
29
30
# File 'lib/bing-ads-api/data/campaign.rb', line 28

def name
  @name
end

#statusObject

Returns the value of attribute status.



28
29
30
# File 'lib/bing-ads-api/data/campaign.rb', line 28

def status
  @status
end

#time_zoneObject

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