lib/sem4r/campaign/campaign_service.rb in sem4r-0.1.1 vs lib/sem4r/campaign/campaign_service.rb in sem4r-0.1.2
- old
+ new
@@ -26,19 +26,19 @@
class CampaignService
include SoapCall
def initialize(connector)
@connector = connector
- @service_namespace = "https://adwords.google.com/api/adwords/cm/v201003"
+ @service_namespace = "https://adwords.google.com/api/adwords/cm/v201008"
@header_namespace = @service_namespace
- @sandbox_service_url = "https://adwords-sandbox.google.com/api/adwords/cm/v201003/CampaignService"
+ @sandbox_service_url = "https://adwords-sandbox.google.com/api/adwords/cm/v201008/CampaignService"
end
- soap_call_v2009 :all, :mutate => false
- soap_call_v2009 :create
- soap_call_v2009 :delete
-
+ soap_call_v2010 :all, :mutate => false
+ soap_call_v2010 :create
+ soap_call_v2010 :delete
+
private
def _all(statuses = [Campaign::ACTIVE, Campaign::PAUSED])
str = <<-EOFS
<get xmlns="#{@service_namespace}">