oass 0.0.1 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore CHANGED
@@ -2,3 +2,4 @@
2
2
  .bundle
3
3
  Gemfile.lock
4
4
  pkg/*
5
+ spec/support/oas_credentials.rb
data/README.md CHANGED
@@ -22,6 +22,10 @@ You can override any settings when you instantiate a new client
22
22
  client = Oass::Client.new
23
23
  campaign = client.read_campaign("campaign_id")
24
24
 
25
+ You can create new resources by informing its properties as a hash in underscore_case
26
+
27
+ client.create_campaign :id => "Campaign!", :description => "Oh hai!"
28
+
25
29
  You can also make requests that are not yet natively implemented
26
30
 
27
31
  client.request "Campaign" do |xml|
@@ -31,3 +35,8 @@ You can also make requests that are not yet natively implemented
31
35
  end
32
36
  end
33
37
  end
38
+
39
+ ### Uploading files
40
+ To upload files (for example, the creative and component files) you don't need to worry about enconding stuff, just specify their paths, types and name
41
+
42
+ client.create_creative :creative_file => { :name => "trollface.png", :content_type => "image/png", :file => "/path/to/trollface.png" }
data/lib/oass.rb CHANGED
@@ -5,8 +5,6 @@ require 'oass/errors'
5
5
 
6
6
  module Oass
7
7
  autoload :Client, "oass/client"
8
- autoload :Campaign, "oass/campaign"
9
- autoload :Creative, "oass/creative"
10
8
 
11
9
  mattr_accessor :endpoint
12
10
  @@endpoint = "https://training7.247realmedia.com//oasapi/OaxApi?wsdl"
@@ -18,7 +16,7 @@ module Oass
18
16
 
19
17
  mattr_accessor :password
20
18
 
21
- def configure
19
+ def self.configure
22
20
  yield self
23
21
  end
24
22
  end
data/lib/oass/client.rb CHANGED
@@ -1,10 +1,13 @@
1
1
  module Oass
2
2
  class Client
3
- attr_accessor :endpoint, :account, :username, :password
3
+ autoload :Campaign, "oass/client/campaign"
4
+ autoload :Creative, "oass/client/creative"
4
5
 
5
6
  include Campaign
6
7
  include Creative
7
8
 
9
+ attr_accessor :endpoint, :account, :username, :password
10
+
8
11
  def initialize(options = {})
9
12
  options.reverse_merge! :endpoint => Oass.endpoint,
10
13
  :account => Oass.account,
@@ -0,0 +1,98 @@
1
+ module Oass
2
+ class Client
3
+ module Campaign
4
+ def read_campaign(id)
5
+ request "Campaign" do |xml|
6
+ xml.Campaign(:action => "read") do
7
+ xml.Overview { xml.Id id }
8
+ end
9
+ end
10
+ end
11
+
12
+ def create_campaign(attributes)
13
+ request "Campaign" do |xml|
14
+ xml.Campaign(:action => "add") do
15
+ xml.Overview do
16
+ # Yeah... the attributes must be in the right order =/
17
+ xml.Id attributes[:id]
18
+ xml.AdvertiserId attributes[:advertiser_id]
19
+ xml.Name attributes[:name]
20
+ xml.AgencyId attributes[:agency_id]
21
+ xml.Description attributes[:description]
22
+ xml.CampaignManager attributes[:campaign_manager]
23
+ xml.ProductId attributes[:product_id]
24
+ xml.ExternalUsers do
25
+ attributes[:external_users].each do |user_id|
26
+ xml.UserId user_id
27
+ end
28
+ end if attributes[:external_users]
29
+ xml.InternalQuickReport attributes[:internal_quick_report]
30
+ xml.ExternalQuickReport attributes[:external_quick_report]
31
+ end
32
+
33
+ if schedule = attributes[:schedule]
34
+ xml.Schedule do
35
+ xml.Impressions schedule[:impressions]
36
+ xml.Clicks schedule[:clicks]
37
+ xml.Uniques schedule[:uniques]
38
+ xml.Weight schedule[:weight]
39
+ xml.PriorityLevel schedule[:priority_level]
40
+ xml.Completion schedule[:completion]
41
+ xml.StartDate schedule[:start_date]
42
+ xml.EndDate schedule[:end_date]
43
+ xml.Reach schedule[:reach]
44
+ xml.DailyImp schedule[:daily_impressions]
45
+ xml.DailyClicks schedule[:daily_clicks]
46
+ xml.DailyUniq schedule[:daily_uniq]
47
+ xml.SmoothOrAsap schedule[:smooth_or_asap]
48
+ xml.ImpOverrun schedule[:impression_overrun]
49
+ xml.CompanionPositions do
50
+ schedule[:companion_positions].each do |position|
51
+ xml.CompanionPosition position
52
+ end
53
+ end if schedule[:companion_positions]
54
+ xml.StrictCompanions schedule[:strict_companions]
55
+
56
+ # TODO check the primary and secondary frequency errors
57
+ if primary_frequency = schedule[:primary_frequency]
58
+ xml.PrimaryFrequency do
59
+ xml.ImpPerVisitor primary_frequency[:impression_per_visitor]
60
+ xml.ClickPerVisitor primary_frequency[:click_per_visitor]
61
+ xml.FreqScope primary_frequency[:frequency_scope]
62
+ end
63
+ end
64
+
65
+ if secondary_frequency = schedule[:primary_frequency]
66
+ xml.SecondaryFrequency do
67
+ xml.ImpPerVisitor secondary_frequency[:impression_per_visitor]
68
+ xml.FreqScope secondary_frequency[:frequency_scope]
69
+ end
70
+ end
71
+
72
+ xml.HourOfDay do
73
+ schedule[:hours_of_day].each do |hour|
74
+ xml.Hour hour
75
+ end
76
+ end if schedule[:hours_of_day]
77
+
78
+ xml.DayOfWeek do
79
+ schedule[:days_of_week].each do |day|
80
+ xml.Day day
81
+ end
82
+ end if schedule[:days_of_week]
83
+
84
+ xml.UserTimeZone schedule[:user_time_zone]
85
+
86
+ xml.Sections do
87
+ schedule[:sections].each do |section|
88
+ xml.SectionId section
89
+ end
90
+ end if schedule[:sections]
91
+ end
92
+ end
93
+ end
94
+ end
95
+ end
96
+ end
97
+ end
98
+ end
@@ -0,0 +1,62 @@
1
+ require 'base64'
2
+
3
+ module Oass
4
+ class Client
5
+ module Creative
6
+ def read_creative(campaign_id, id)
7
+ request "Creative" do |xml|
8
+ xml.Creative(:action => "read") do
9
+ xml.CampaignId campaign_id
10
+ xml.Id id
11
+ end
12
+ end
13
+ end
14
+
15
+ def create_creative(attributes)
16
+ request "Creative" do |xml|
17
+ xml.Creative(:action => "add") do
18
+ xml.CampaignId attributes[:campaign_id]
19
+ xml.Id attributes[:id]
20
+ xml.Name attributes[:name]
21
+ xml.Description attributes[:description]
22
+ xml.ClickUrl attributes[:click_url]
23
+ xml.Positions do
24
+ attributes[:positions].each do |position|
25
+ xml.Position position
26
+ end
27
+ end if attributes[:positions]
28
+ xml.CreativeTypesId attributes[:creative_types_id]
29
+ xml.RedirectUrl attributes[:redirect_url]
30
+ xml.Display attributes[:display]
31
+ xml.Height attributes[:height]
32
+ xml.Width attributes[:width]
33
+ xml.TargetWindow attributes[:target_window]
34
+ xml.AltText attributes[:alt_text]
35
+ xml.DiscountImpressions attributes[:discount_impressions]
36
+ xml.StartDate attributes[:start_date]
37
+ xml.EndDate attributes[:end_date]
38
+ xml.Weight attributes[:weight]
39
+ xml.ExpireImmediately attributes[:expire_immediately]
40
+ xml.NoCache attributes[:no_cache]
41
+ xml.ExtraHTML attributes[:extra_html]
42
+ xml.ExtraText attributes[:extra_text]
43
+ xml.BrowserV do
44
+ attributes[:browser_versions].each do |version|
45
+ xml.Code version
46
+ end
47
+ end if attributes[:browser_versions]
48
+ xml.SequenceNo attributes[:sequence_number]
49
+ if attributes[:creative_file]
50
+ xml.File(:fileType => "creative",
51
+ :contentType => attributes[:creative_file][:content_type],
52
+ :fileName => attributes[:creative_file][:name],
53
+ :encoding => "base64") do
54
+ xml.text Base64.encode64(File.open(attributes[:creative_file][:file]).read)
55
+ end
56
+ end
57
+ end
58
+ end
59
+ end
60
+ end
61
+ end
62
+ end
data/lib/oass/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Oass
2
- VERSION = "0.0.1"
2
+ VERSION = "0.1.0"
3
3
  end
Binary file
@@ -0,0 +1,60 @@
1
+ ---
2
+ - !ruby/struct:VCR::HTTPInteraction
3
+ request: !ruby/struct:VCR::Request
4
+ method: :post
5
+ uri: https://training7.247realmedia.com:443/oasapi/OaxApi
6
+ body: |-
7
+ <?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:n1="http://api.oas.tfsm.com/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Body><n1:OasXmlRequest xmlns:n1="http://api.oas.tfsm.com/"><String_1><%= account %></String_1><String_2><%= username %></String_2><String_3><%= password %></String_3><String_4>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
8
+ &lt;AdXML&gt;
9
+ &lt;Request type=&quot;Campaign&quot;&gt;
10
+ &lt;Campaign action=&quot;add&quot;&gt;
11
+ &lt;Overview&gt;
12
+ &lt;Id&gt;&lt;/Id&gt;
13
+ &lt;AdvertiserId&gt;&lt;/AdvertiserId&gt;
14
+ &lt;Name&gt;&lt;/Name&gt;
15
+ &lt;AgencyId&gt;&lt;/AgencyId&gt;
16
+ &lt;Description&gt;&lt;/Description&gt;
17
+ &lt;CampaignManager&gt;&lt;/CampaignManager&gt;
18
+ &lt;ProductId&gt;&lt;/ProductId&gt;
19
+ &lt;InternalQuickReport&gt;&lt;/InternalQuickReport&gt;
20
+ &lt;ExternalQuickReport&gt;&lt;/ExternalQuickReport&gt;
21
+ &lt;/Overview&gt;
22
+ &lt;/Campaign&gt;
23
+ &lt;/Request&gt;
24
+ &lt;/AdXML&gt;
25
+ </String_4></n1:OasXmlRequest></env:Body></env:Envelope>
26
+ headers:
27
+ content-type:
28
+ - text/xml;charset=UTF-8
29
+ soapaction:
30
+ - "\"OasXmlRequest\""
31
+ response: !ruby/struct:VCR::Response
32
+ status: !ruby/struct:VCR::ResponseStatus
33
+ code: 200
34
+ message: OK
35
+ headers:
36
+ x-powered-by:
37
+ - Servlet 2.5; JBoss-5.0/JBossWeb-2.1
38
+ p3p:
39
+ - CP="NON NID PSAa PSDa OUR IND UNI COM NAV STA",policyref="/w3c/p3p.xml"
40
+ content-type:
41
+ - text/xml;charset=UTF-8
42
+ via:
43
+ - 1.1 training7.247realmedia.com
44
+ server:
45
+ - Apache-Coyote/1.1
46
+ date:
47
+ - Thu, 26 May 2011 01:29:55 GMT
48
+ transfer-encoding:
49
+ - chunked
50
+ body: |-
51
+ <?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><ns1:OasXmlRequestResponse xmlns:ns1="http://api.oas.tfsm.com/"><result>&lt;?xml version='1.0'?>
52
+ &lt;AdXML>
53
+
54
+ &lt;Response>
55
+ &lt;Campaign>
56
+ &lt;Exception errorCode='505'> is an invalid value for Id&lt;/Exception>
57
+ &lt;/Campaign>
58
+ &lt;/Response>
59
+ &lt;/AdXML></result></ns1:OasXmlRequestResponse></soapenv:Body></soapenv:Envelope>
60
+ http_version: "1.1"
@@ -0,0 +1,70 @@
1
+ ---
2
+ - !ruby/struct:VCR::HTTPInteraction
3
+ request: !ruby/struct:VCR::Request
4
+ method: :post
5
+ uri: https://training7.247realmedia.com:443/oasapi/OaxApi
6
+ body: |-
7
+ <?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:n1="http://api.oas.tfsm.com/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Body><n1:OasXmlRequest xmlns:n1="http://api.oas.tfsm.com/"><String_1><%= account %></String_1><String_2><%= username %></String_2><String_3><%= password %></String_3><String_4>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
8
+ &lt;AdXML&gt;
9
+ &lt;Request type=&quot;Creative&quot;&gt;
10
+ &lt;Creative action=&quot;add&quot;&gt;
11
+ &lt;CampaignId&gt;&lt;/CampaignId&gt;
12
+ &lt;Id&gt;&lt;/Id&gt;
13
+ &lt;Name&gt;&lt;/Name&gt;
14
+ &lt;Description&gt;&lt;/Description&gt;
15
+ &lt;ClickUrl&gt;&lt;/ClickUrl&gt;
16
+ &lt;CreativeTypesId&gt;&lt;/CreativeTypesId&gt;
17
+ &lt;RedirectUrl&gt;&lt;/RedirectUrl&gt;
18
+ &lt;Display&gt;&lt;/Display&gt;
19
+ &lt;Height&gt;&lt;/Height&gt;
20
+ &lt;Width&gt;&lt;/Width&gt;
21
+ &lt;TargetWindow&gt;&lt;/TargetWindow&gt;
22
+ &lt;AltText&gt;&lt;/AltText&gt;
23
+ &lt;DiscountImpressions&gt;&lt;/DiscountImpressions&gt;
24
+ &lt;StartDate&gt;&lt;/StartDate&gt;
25
+ &lt;EndDate&gt;&lt;/EndDate&gt;
26
+ &lt;Weight&gt;&lt;/Weight&gt;
27
+ &lt;ExpireImmediately&gt;&lt;/ExpireImmediately&gt;
28
+ &lt;NoCache&gt;&lt;/NoCache&gt;
29
+ &lt;ExtraHTML&gt;&lt;/ExtraHTML&gt;
30
+ &lt;ExtraText&gt;&lt;/ExtraText&gt;
31
+ &lt;SequenceNo&gt;&lt;/SequenceNo&gt;
32
+ &lt;/Creative&gt;
33
+ &lt;/Request&gt;
34
+ &lt;/AdXML&gt;
35
+ </String_4></n1:OasXmlRequest></env:Body></env:Envelope>
36
+ headers:
37
+ content-type:
38
+ - text/xml;charset=UTF-8
39
+ soapaction:
40
+ - "\"OasXmlRequest\""
41
+ response: !ruby/struct:VCR::Response
42
+ status: !ruby/struct:VCR::ResponseStatus
43
+ code: 200
44
+ message: OK
45
+ headers:
46
+ x-powered-by:
47
+ - Servlet 2.5; JBoss-5.0/JBossWeb-2.1
48
+ p3p:
49
+ - CP="NON NID PSAa PSDa OUR IND UNI COM NAV STA",policyref="/w3c/p3p.xml"
50
+ content-type:
51
+ - text/xml;charset=UTF-8
52
+ via:
53
+ - 1.1 training7.247realmedia.com
54
+ server:
55
+ - Apache-Coyote/1.1
56
+ date:
57
+ - Thu, 26 May 2011 01:25:50 GMT
58
+ transfer-encoding:
59
+ - chunked
60
+ body: |-
61
+ <?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><ns1:OasXmlRequestResponse xmlns:ns1="http://api.oas.tfsm.com/"><result>&lt;?xml version='1.0'?>
62
+ &lt;AdXML>
63
+
64
+ &lt;Response>
65
+ &lt;Creative>
66
+ &lt;Exception errorCode='502'>CampaignId must not be blank.&lt;/Exception>
67
+ &lt;/Creative>
68
+ &lt;/Response>
69
+ &lt;/AdXML></result></ns1:OasXmlRequestResponse></soapenv:Body></soapenv:Envelope>
70
+ http_version: "1.1"
@@ -0,0 +1,1672 @@
1
+ ---
2
+ - !ruby/struct:VCR::HTTPInteraction
3
+ request: !ruby/struct:VCR::Request
4
+ method: :get
5
+ uri: https://training7.247realmedia.com:443//oasapi/OaxApi?wsdl
6
+ body:
7
+ headers:
8
+ response: !ruby/struct:VCR::Response
9
+ status: !ruby/struct:VCR::ResponseStatus
10
+ code: 200
11
+ message: OK
12
+ headers:
13
+ etag:
14
+ - "\"44e617-674-48c8d0448cd40\""
15
+ last-modified:
16
+ - Thu, 29 Jul 2010 20:59:57 GMT
17
+ p3p:
18
+ - CP="NON NID PSAa PSDa OUR IND UNI COM NAV STA",policyref="/w3c/p3p.xml"
19
+ content-type:
20
+ - text/xml
21
+ date:
22
+ - Thu, 26 May 2011 00:57:00 GMT
23
+ server:
24
+ - Apache/2.2.3 (Red Hat)
25
+ content-length:
26
+ - "1652"
27
+ accept-ranges:
28
+ - bytes
29
+ body: |
30
+ <?xml version="1.0" encoding="UTF-8"?>
31
+ <definitions name="OaxApiService" targetNamespace="http://api.oas.tfsm.com/" xmlns:tns="http://api.oas.tfsm.com/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns="http://schemas.xmlsoap.org/wsdl/">
32
+ <types>
33
+ </types>
34
+ <message name="OaxApi_OasXmlRequestResponse">
35
+ <part name="result" type="xsd:string">
36
+ </part>
37
+ </message>
38
+ <message name="OaxApi_OasXmlRequest">
39
+ <part name="String_1" type="xsd:string">
40
+
41
+ </part>
42
+ <part name="String_2" type="xsd:string">
43
+ </part>
44
+ <part name="String_3" type="xsd:string">
45
+ </part>
46
+ <part name="String_4" type="xsd:string">
47
+ </part>
48
+ </message>
49
+ <portType name="OaxApi">
50
+
51
+ <operation name="OasXmlRequest" parameterOrder="String_1 String_2 String_3 String_4">
52
+ <input message="tns:OaxApi_OasXmlRequest">
53
+ </input>
54
+ <output message="tns:OaxApi_OasXmlRequestResponse">
55
+ </output>
56
+ </operation>
57
+ </portType>
58
+ <binding name="OaxApiBinding" type="tns:OaxApi">
59
+ <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
60
+
61
+ <operation name="OasXmlRequest">
62
+ <soap:operation soapAction=""/>
63
+ <input>
64
+ <soap:body use="literal" namespace="http://api.oas.tfsm.com/"/>
65
+ </input>
66
+ <output>
67
+ <soap:body use="literal" namespace="http://api.oas.tfsm.com/"/>
68
+ </output>
69
+ </operation>
70
+
71
+ </binding>
72
+ <service name="OaxApiService">
73
+ <port name="OaxApiPort" binding="tns:OaxApiBinding">
74
+ <soap:address location="https://training7.247realmedia.com:443/oasapi/OaxApi"/>
75
+ </port>
76
+ </service>
77
+ </definitions>
78
+
79
+ http_version: "1.1"
80
+ - !ruby/struct:VCR::HTTPInteraction
81
+ request: !ruby/struct:VCR::Request
82
+ method: :post
83
+ uri: https://training7.247realmedia.com:443/oasapi/OaxApi
84
+ body: |-
85
+ <?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:n1="http://api.oas.tfsm.com/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Body><n1:OasXmlRequest xmlns:n1="http://api.oas.tfsm.com/"><String_1>Abril</String_1><String_2>dev_abril</String_2><String_3>d3v@p1SgpD</String_3><String_4>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
86
+ &lt;AdXML&gt;
87
+ &lt;Request type=&quot;Campaign&quot;&gt;
88
+ &lt;Campaign action=&quot;add&quot;&gt;
89
+ &lt;Overview&gt;
90
+ &lt;Id&gt;random_id_lolwut_wtf&lt;/Id&gt;
91
+ &lt;AdvertiserId&gt;bobo&lt;/AdvertiserId&gt;
92
+ &lt;Name&gt;LOLWUT&lt;/Name&gt;
93
+ &lt;AgencyId&gt;unknown_agency&lt;/AgencyId&gt;
94
+ &lt;Description&gt;&lt;/Description&gt;
95
+ &lt;CampaignManager&gt;lol&lt;/CampaignManager&gt;
96
+ &lt;ProductId&gt;default-product&lt;/ProductId&gt;
97
+ &lt;InternalQuickReport&gt;&lt;/InternalQuickReport&gt;
98
+ &lt;ExternalQuickReport&gt;&lt;/ExternalQuickReport&gt;
99
+ &lt;/Overview&gt;
100
+ &lt;/Campaign&gt;
101
+ &lt;/Request&gt;
102
+ &lt;/AdXML&gt;
103
+ </String_4></n1:OasXmlRequest></env:Body></env:Envelope>
104
+ headers:
105
+ soapaction:
106
+ - "\"OasXmlRequest\""
107
+ content-type:
108
+ - text/xml;charset=UTF-8
109
+ response: !ruby/struct:VCR::Response
110
+ status: !ruby/struct:VCR::ResponseStatus
111
+ code: 200
112
+ message: OK
113
+ headers:
114
+ x-powered-by:
115
+ - Servlet 2.5; JBoss-5.0/JBossWeb-2.1
116
+ p3p:
117
+ - CP="NON NID PSAa PSDa OUR IND UNI COM NAV STA",policyref="/w3c/p3p.xml"
118
+ via:
119
+ - 1.1 training7.247realmedia.com
120
+ content-type:
121
+ - text/xml;charset=UTF-8
122
+ date:
123
+ - Thu, 26 May 2011 00:57:02 GMT
124
+ server:
125
+ - Apache-Coyote/1.1
126
+ transfer-encoding:
127
+ - chunked
128
+ body: |-
129
+ <?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><ns1:OasXmlRequestResponse xmlns:ns1="http://api.oas.tfsm.com/"><result>&lt;?xml version='1.0'?>
130
+ &lt;AdXML>
131
+
132
+ &lt;Response>
133
+ &lt;Campaign>Successfully added.&lt;/Campaign>
134
+ &lt;/Response>
135
+ &lt;/AdXML></result></ns1:OasXmlRequestResponse></soapenv:Body></soapenv:Envelope>
136
+ http_version: "1.1"
137
+ - !ruby/struct:VCR::HTTPInteraction
138
+ request: !ruby/struct:VCR::Request
139
+ method: :get
140
+ uri: https://training7.247realmedia.com:443//oasapi/OaxApi?wsdl
141
+ body:
142
+ headers:
143
+ response: !ruby/struct:VCR::Response
144
+ status: !ruby/struct:VCR::ResponseStatus
145
+ code: 200
146
+ message: OK
147
+ headers:
148
+ etag:
149
+ - "\"44e617-674-48c8d0448cd40\""
150
+ p3p:
151
+ - CP="NON NID PSAa PSDa OUR IND UNI COM NAV STA",policyref="/w3c/p3p.xml"
152
+ last-modified:
153
+ - Thu, 29 Jul 2010 20:59:57 GMT
154
+ content-type:
155
+ - text/xml
156
+ server:
157
+ - Apache/2.2.3 (Red Hat)
158
+ date:
159
+ - Thu, 26 May 2011 00:57:45 GMT
160
+ content-length:
161
+ - "1652"
162
+ accept-ranges:
163
+ - bytes
164
+ body: |
165
+ <?xml version="1.0" encoding="UTF-8"?>
166
+ <definitions name="OaxApiService" targetNamespace="http://api.oas.tfsm.com/" xmlns:tns="http://api.oas.tfsm.com/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns="http://schemas.xmlsoap.org/wsdl/">
167
+ <types>
168
+ </types>
169
+ <message name="OaxApi_OasXmlRequestResponse">
170
+ <part name="result" type="xsd:string">
171
+ </part>
172
+ </message>
173
+ <message name="OaxApi_OasXmlRequest">
174
+ <part name="String_1" type="xsd:string">
175
+
176
+ </part>
177
+ <part name="String_2" type="xsd:string">
178
+ </part>
179
+ <part name="String_3" type="xsd:string">
180
+ </part>
181
+ <part name="String_4" type="xsd:string">
182
+ </part>
183
+ </message>
184
+ <portType name="OaxApi">
185
+
186
+ <operation name="OasXmlRequest" parameterOrder="String_1 String_2 String_3 String_4">
187
+ <input message="tns:OaxApi_OasXmlRequest">
188
+ </input>
189
+ <output message="tns:OaxApi_OasXmlRequestResponse">
190
+ </output>
191
+ </operation>
192
+ </portType>
193
+ <binding name="OaxApiBinding" type="tns:OaxApi">
194
+ <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
195
+
196
+ <operation name="OasXmlRequest">
197
+ <soap:operation soapAction=""/>
198
+ <input>
199
+ <soap:body use="literal" namespace="http://api.oas.tfsm.com/"/>
200
+ </input>
201
+ <output>
202
+ <soap:body use="literal" namespace="http://api.oas.tfsm.com/"/>
203
+ </output>
204
+ </operation>
205
+
206
+ </binding>
207
+ <service name="OaxApiService">
208
+ <port name="OaxApiPort" binding="tns:OaxApiBinding">
209
+ <soap:address location="https://training7.247realmedia.com:443/oasapi/OaxApi"/>
210
+ </port>
211
+ </service>
212
+ </definitions>
213
+
214
+ http_version: "1.1"
215
+ - !ruby/struct:VCR::HTTPInteraction
216
+ request: !ruby/struct:VCR::Request
217
+ method: :post
218
+ uri: https://training7.247realmedia.com:443/oasapi/OaxApi
219
+ body: |-
220
+ <?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:n1="http://api.oas.tfsm.com/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Body><n1:OasXmlRequest xmlns:n1="http://api.oas.tfsm.com/"><String_1>Abril</String_1><String_2>dev_abril</String_2><String_3>d3v@p1SgpD</String_3><String_4>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
221
+ &lt;AdXML&gt;
222
+ &lt;Request type=&quot;Campaign&quot;&gt;
223
+ &lt;Campaign action=&quot;add&quot;&gt;
224
+ &lt;Overview&gt;
225
+ &lt;Id&gt;random_id_lolwut_wtf&lt;/Id&gt;
226
+ &lt;AdvertiserId&gt;bobo&lt;/AdvertiserId&gt;
227
+ &lt;Name&gt;LOLWUT&lt;/Name&gt;
228
+ &lt;AgencyId&gt;unknown_agency&lt;/AgencyId&gt;
229
+ &lt;Description&gt;&lt;/Description&gt;
230
+ &lt;CampaignManager&gt;lol&lt;/CampaignManager&gt;
231
+ &lt;ProductId&gt;default-product&lt;/ProductId&gt;
232
+ &lt;InternalQuickReport&gt;&lt;/InternalQuickReport&gt;
233
+ &lt;ExternalQuickReport&gt;&lt;/ExternalQuickReport&gt;
234
+ &lt;/Overview&gt;
235
+ &lt;Schedule&gt;
236
+ &lt;Impressions&gt;999&lt;/Impressions&gt;
237
+ &lt;Clicks&gt;0&lt;/Clicks&gt;
238
+ &lt;Uniques&gt;0&lt;/Uniques&gt;
239
+ &lt;Weight&gt;10&lt;/Weight&gt;
240
+ &lt;PriorityLevel&gt;1&lt;/PriorityLevel&gt;
241
+ &lt;Completion&gt;E&lt;/Completion&gt;
242
+ &lt;StartDate&gt;2005-12-01&lt;/StartDate&gt;
243
+ &lt;EndDate&gt;2040-12-01&lt;/EndDate&gt;
244
+ &lt;Reach&gt;O&lt;/Reach&gt;
245
+ &lt;DailyImp&gt;99&lt;/DailyImp&gt;
246
+ &lt;DailyClicks&gt;9&lt;/DailyClicks&gt;
247
+ &lt;DailyUniq&gt;1&lt;/DailyUniq&gt;
248
+ &lt;SmoothOrAsap&gt;S&lt;/SmoothOrAsap&gt;
249
+ &lt;ImpOverrun&gt;2&lt;/ImpOverrun&gt;
250
+ &lt;CompanionPositions&gt;
251
+ &lt;CompanionPosition&gt;B/T&lt;/CompanionPosition&gt;
252
+ &lt;CompanionPosition&gt;BL/TL&lt;/CompanionPosition&gt;
253
+ &lt;/CompanionPositions&gt;
254
+ &lt;StrictCompanions&gt;Y&lt;/StrictCompanions&gt;
255
+ &lt;PrimaryFrequency&gt;
256
+ &lt;ImpPerVisitor&gt;2&lt;/ImpPerVisitor&gt;
257
+ &lt;ClickPerVisitor&gt;0&lt;/ClickPerVisitor&gt;
258
+ &lt;FreqScore&gt;Y&lt;/FreqScore&gt;
259
+ &lt;/PrimaryFrequency&gt;
260
+ &lt;SecondaryFrequency&gt;
261
+ &lt;ImpPerVisitor&gt;2&lt;/ImpPerVisitor&gt;
262
+ &lt;ClickPerVisitor&gt;0&lt;/ClickPerVisitor&gt;
263
+ &lt;FreqScore&gt;Y&lt;/FreqScore&gt;
264
+ &lt;/SecondaryFrequency&gt;
265
+ &lt;HourOfDay&gt;
266
+ &lt;Hour&gt;00&lt;/Hour&gt;
267
+ &lt;Hour&gt;01&lt;/Hour&gt;
268
+ &lt;Hour&gt;23&lt;/Hour&gt;
269
+ &lt;/HourOfDay&gt;
270
+ &lt;DayOfWeek&gt;
271
+ &lt;Day&gt;2&lt;/Day&gt;
272
+ &lt;Day&gt;3&lt;/Day&gt;
273
+ &lt;Day&gt;4&lt;/Day&gt;
274
+ &lt;Day&gt;5&lt;/Day&gt;
275
+ &lt;/DayOfWeek&gt;
276
+ &lt;UserTimeZone&gt;Y&lt;/UserTimeZone&gt;
277
+ &lt;Sections&gt;
278
+ &lt;SectionId&gt;SectionABC&lt;/SectionId&gt;
279
+ &lt;SectionId&gt;SectionDEF&lt;/SectionId&gt;
280
+ &lt;/Sections&gt;
281
+ &lt;/Schedule&gt;
282
+ &lt;/Campaign&gt;
283
+ &lt;/Request&gt;
284
+ &lt;/AdXML&gt;
285
+ </String_4></n1:OasXmlRequest></env:Body></env:Envelope>
286
+ headers:
287
+ soapaction:
288
+ - "\"OasXmlRequest\""
289
+ content-type:
290
+ - text/xml;charset=UTF-8
291
+ response: !ruby/struct:VCR::Response
292
+ status: !ruby/struct:VCR::ResponseStatus
293
+ code: 200
294
+ message: OK
295
+ headers:
296
+ x-powered-by:
297
+ - Servlet 2.5; JBoss-5.0/JBossWeb-2.1
298
+ p3p:
299
+ - CP="NON NID PSAa PSDa OUR IND UNI COM NAV STA",policyref="/w3c/p3p.xml"
300
+ via:
301
+ - 1.1 training7.247realmedia.com
302
+ content-type:
303
+ - text/xml;charset=UTF-8
304
+ date:
305
+ - Thu, 26 May 2011 16:37:27 GMT
306
+ server:
307
+ - Apache-Coyote/1.1
308
+ transfer-encoding:
309
+ - chunked
310
+ body: |-
311
+ <?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><ns1:OasXmlRequestResponse xmlns:ns1="http://api.oas.tfsm.com/"><result>&lt;?xml version='1.0'?>
312
+ &lt;AdXML>
313
+ &lt;Response>
314
+ &lt;Exception errorCode='370'>&lt;![CDATA[
315
+ error in API request
316
+ line: 45
317
+ message: The content of element type "SecondaryFrequency" must match "(ImpPerVisitor?,FreqScope?)".
318
+ type: Parse Exception]]&gt;&lt;/Exception>
319
+ &lt;/Response>
320
+ &lt;/AdXML></result></ns1:OasXmlRequestResponse></soapenv:Body></soapenv:Envelope>
321
+ http_version: "1.1"
322
+ - !ruby/struct:VCR::HTTPInteraction
323
+ request: !ruby/struct:VCR::Request
324
+ method: :post
325
+ uri: https://training7.247realmedia.com:443/oasapi/OaxApi
326
+ body: |-
327
+ <?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:n1="http://api.oas.tfsm.com/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Body><n1:OasXmlRequest xmlns:n1="http://api.oas.tfsm.com/"><String_1>Abril</String_1><String_2>dev_abril</String_2><String_3>d3v@p1SgpD</String_3><String_4>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
328
+ &lt;AdXML&gt;
329
+ &lt;Request type=&quot;Campaign&quot;&gt;
330
+ &lt;Campaign action=&quot;add&quot;&gt;
331
+ &lt;Overview&gt;
332
+ &lt;Id&gt;random_id_lolwut_wtf&lt;/Id&gt;
333
+ &lt;AdvertiserId&gt;bobo&lt;/AdvertiserId&gt;
334
+ &lt;Name&gt;LOLWUT&lt;/Name&gt;
335
+ &lt;AgencyId&gt;unknown_agency&lt;/AgencyId&gt;
336
+ &lt;Description&gt;&lt;/Description&gt;
337
+ &lt;CampaignManager&gt;lol&lt;/CampaignManager&gt;
338
+ &lt;ProductId&gt;default-product&lt;/ProductId&gt;
339
+ &lt;InternalQuickReport&gt;&lt;/InternalQuickReport&gt;
340
+ &lt;ExternalQuickReport&gt;&lt;/ExternalQuickReport&gt;
341
+ &lt;/Overview&gt;
342
+ &lt;Schedule&gt;
343
+ &lt;Impressions&gt;999&lt;/Impressions&gt;
344
+ &lt;Clicks&gt;0&lt;/Clicks&gt;
345
+ &lt;Uniques&gt;0&lt;/Uniques&gt;
346
+ &lt;Weight&gt;10&lt;/Weight&gt;
347
+ &lt;PriorityLevel&gt;1&lt;/PriorityLevel&gt;
348
+ &lt;Completion&gt;E&lt;/Completion&gt;
349
+ &lt;StartDate&gt;2005-12-01&lt;/StartDate&gt;
350
+ &lt;EndDate&gt;2040-12-01&lt;/EndDate&gt;
351
+ &lt;Reach&gt;O&lt;/Reach&gt;
352
+ &lt;DailyImp&gt;99&lt;/DailyImp&gt;
353
+ &lt;DailyClicks&gt;9&lt;/DailyClicks&gt;
354
+ &lt;DailyUniq&gt;1&lt;/DailyUniq&gt;
355
+ &lt;SmoothOrAsap&gt;S&lt;/SmoothOrAsap&gt;
356
+ &lt;ImpOverrun&gt;2&lt;/ImpOverrun&gt;
357
+ &lt;CompanionPositions&gt;
358
+ &lt;CompanionPosition&gt;B/T&lt;/CompanionPosition&gt;
359
+ &lt;CompanionPosition&gt;BL/TL&lt;/CompanionPosition&gt;
360
+ &lt;/CompanionPositions&gt;
361
+ &lt;StrictCompanions&gt;Y&lt;/StrictCompanions&gt;
362
+ &lt;PrimaryFrequency&gt;
363
+ &lt;ImpPerVisitor&gt;2&lt;/ImpPerVisitor&gt;
364
+ &lt;FreqScore&gt;Y&lt;/FreqScore&gt;
365
+ &lt;ClickPerVisitor&gt;0&lt;/ClickPerVisitor&gt;
366
+ &lt;/PrimaryFrequency&gt;
367
+ &lt;SecondaryFrequency&gt;
368
+ &lt;ImpPerVisitor&gt;2&lt;/ImpPerVisitor&gt;
369
+ &lt;FreqScore&gt;Y&lt;/FreqScore&gt;
370
+ &lt;ClickPerVisitor&gt;0&lt;/ClickPerVisitor&gt;
371
+ &lt;/SecondaryFrequency&gt;
372
+ &lt;HourOfDay&gt;
373
+ &lt;Hour&gt;00&lt;/Hour&gt;
374
+ &lt;Hour&gt;01&lt;/Hour&gt;
375
+ &lt;Hour&gt;23&lt;/Hour&gt;
376
+ &lt;/HourOfDay&gt;
377
+ &lt;DayOfWeek&gt;
378
+ &lt;Day&gt;2&lt;/Day&gt;
379
+ &lt;Day&gt;3&lt;/Day&gt;
380
+ &lt;Day&gt;4&lt;/Day&gt;
381
+ &lt;Day&gt;5&lt;/Day&gt;
382
+ &lt;/DayOfWeek&gt;
383
+ &lt;UserTimeZone&gt;Y&lt;/UserTimeZone&gt;
384
+ &lt;Sections&gt;
385
+ &lt;SectionId&gt;SectionABC&lt;/SectionId&gt;
386
+ &lt;SectionId&gt;SectionDEF&lt;/SectionId&gt;
387
+ &lt;/Sections&gt;
388
+ &lt;/Schedule&gt;
389
+ &lt;/Campaign&gt;
390
+ &lt;/Request&gt;
391
+ &lt;/AdXML&gt;
392
+ </String_4></n1:OasXmlRequest></env:Body></env:Envelope>
393
+ headers:
394
+ content-type:
395
+ - text/xml;charset=UTF-8
396
+ soapaction:
397
+ - "\"OasXmlRequest\""
398
+ response: !ruby/struct:VCR::Response
399
+ status: !ruby/struct:VCR::ResponseStatus
400
+ code: 200
401
+ message: OK
402
+ headers:
403
+ x-powered-by:
404
+ - Servlet 2.5; JBoss-5.0/JBossWeb-2.1
405
+ p3p:
406
+ - CP="NON NID PSAa PSDa OUR IND UNI COM NAV STA",policyref="/w3c/p3p.xml"
407
+ content-type:
408
+ - text/xml;charset=UTF-8
409
+ via:
410
+ - 1.1 training7.247realmedia.com
411
+ server:
412
+ - Apache-Coyote/1.1
413
+ date:
414
+ - Thu, 26 May 2011 16:38:16 GMT
415
+ transfer-encoding:
416
+ - chunked
417
+ body: |-
418
+ <?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><ns1:OasXmlRequestResponse xmlns:ns1="http://api.oas.tfsm.com/"><result>&lt;?xml version='1.0'?>
419
+ &lt;AdXML>
420
+ &lt;Response>
421
+ &lt;Exception errorCode='370'>&lt;![CDATA[
422
+ error in API request
423
+ line: 45
424
+ message: The content of element type "SecondaryFrequency" must match "(ImpPerVisitor?,FreqScope?)".
425
+ type: Parse Exception]]&gt;&lt;/Exception>
426
+ &lt;/Response>
427
+ &lt;/AdXML></result></ns1:OasXmlRequestResponse></soapenv:Body></soapenv:Envelope>
428
+ http_version: "1.1"
429
+ - !ruby/struct:VCR::HTTPInteraction
430
+ request: !ruby/struct:VCR::Request
431
+ method: :post
432
+ uri: https://training7.247realmedia.com:443/oasapi/OaxApi
433
+ body: |-
434
+ <?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:n1="http://api.oas.tfsm.com/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Body><n1:OasXmlRequest xmlns:n1="http://api.oas.tfsm.com/"><String_1>Abril</String_1><String_2>dev_abril</String_2><String_3>d3v@p1SgpD</String_3><String_4>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
435
+ &lt;AdXML&gt;
436
+ &lt;Request type=&quot;Campaign&quot;&gt;
437
+ &lt;Campaign action=&quot;add&quot;&gt;
438
+ &lt;Overview&gt;
439
+ &lt;Id&gt;random_id_lolwut_wtf&lt;/Id&gt;
440
+ &lt;AdvertiserId&gt;bobo&lt;/AdvertiserId&gt;
441
+ &lt;Name&gt;LOLWUT&lt;/Name&gt;
442
+ &lt;AgencyId&gt;unknown_agency&lt;/AgencyId&gt;
443
+ &lt;Description&gt;&lt;/Description&gt;
444
+ &lt;CampaignManager&gt;lol&lt;/CampaignManager&gt;
445
+ &lt;ProductId&gt;default-product&lt;/ProductId&gt;
446
+ &lt;InternalQuickReport&gt;&lt;/InternalQuickReport&gt;
447
+ &lt;ExternalQuickReport&gt;&lt;/ExternalQuickReport&gt;
448
+ &lt;/Overview&gt;
449
+ &lt;Schedule&gt;
450
+ &lt;Impressions&gt;999&lt;/Impressions&gt;
451
+ &lt;Clicks&gt;0&lt;/Clicks&gt;
452
+ &lt;Uniques&gt;0&lt;/Uniques&gt;
453
+ &lt;Weight&gt;10&lt;/Weight&gt;
454
+ &lt;PriorityLevel&gt;1&lt;/PriorityLevel&gt;
455
+ &lt;Completion&gt;E&lt;/Completion&gt;
456
+ &lt;StartDate&gt;2005-12-01&lt;/StartDate&gt;
457
+ &lt;EndDate&gt;2040-12-01&lt;/EndDate&gt;
458
+ &lt;Reach&gt;O&lt;/Reach&gt;
459
+ &lt;DailyImp&gt;99&lt;/DailyImp&gt;
460
+ &lt;DailyClicks&gt;9&lt;/DailyClicks&gt;
461
+ &lt;DailyUniq&gt;1&lt;/DailyUniq&gt;
462
+ &lt;SmoothOrAsap&gt;S&lt;/SmoothOrAsap&gt;
463
+ &lt;ImpOverrun&gt;2&lt;/ImpOverrun&gt;
464
+ &lt;CompanionPositions&gt;
465
+ &lt;CompanionPosition&gt;B/T&lt;/CompanionPosition&gt;
466
+ &lt;CompanionPosition&gt;BL/TL&lt;/CompanionPosition&gt;
467
+ &lt;/CompanionPositions&gt;
468
+ &lt;StrictCompanions&gt;Y&lt;/StrictCompanions&gt;
469
+ &lt;PrimaryFrequency&gt;
470
+ &lt;ImpPerVisitor&gt;2&lt;/ImpPerVisitor&gt;
471
+ &lt;FreqScore&gt;Y&lt;/FreqScore&gt;
472
+ &lt;/PrimaryFrequency&gt;
473
+ &lt;SecondaryFrequency&gt;
474
+ &lt;ImpPerVisitor&gt;2&lt;/ImpPerVisitor&gt;
475
+ &lt;FreqScore&gt;Y&lt;/FreqScore&gt;
476
+ &lt;/SecondaryFrequency&gt;
477
+ &lt;HourOfDay&gt;
478
+ &lt;Hour&gt;00&lt;/Hour&gt;
479
+ &lt;Hour&gt;01&lt;/Hour&gt;
480
+ &lt;Hour&gt;23&lt;/Hour&gt;
481
+ &lt;/HourOfDay&gt;
482
+ &lt;DayOfWeek&gt;
483
+ &lt;Day&gt;2&lt;/Day&gt;
484
+ &lt;Day&gt;3&lt;/Day&gt;
485
+ &lt;Day&gt;4&lt;/Day&gt;
486
+ &lt;Day&gt;5&lt;/Day&gt;
487
+ &lt;/DayOfWeek&gt;
488
+ &lt;UserTimeZone&gt;Y&lt;/UserTimeZone&gt;
489
+ &lt;Sections&gt;
490
+ &lt;SectionId&gt;SectionABC&lt;/SectionId&gt;
491
+ &lt;SectionId&gt;SectionDEF&lt;/SectionId&gt;
492
+ &lt;/Sections&gt;
493
+ &lt;/Schedule&gt;
494
+ &lt;/Campaign&gt;
495
+ &lt;/Request&gt;
496
+ &lt;/AdXML&gt;
497
+ </String_4></n1:OasXmlRequest></env:Body></env:Envelope>
498
+ headers:
499
+ soapaction:
500
+ - "\"OasXmlRequest\""
501
+ content-type:
502
+ - text/xml;charset=UTF-8
503
+ response: !ruby/struct:VCR::Response
504
+ status: !ruby/struct:VCR::ResponseStatus
505
+ code: 200
506
+ message: OK
507
+ headers:
508
+ x-powered-by:
509
+ - Servlet 2.5; JBoss-5.0/JBossWeb-2.1
510
+ p3p:
511
+ - CP="NON NID PSAa PSDa OUR IND UNI COM NAV STA",policyref="/w3c/p3p.xml"
512
+ via:
513
+ - 1.1 training7.247realmedia.com
514
+ content-type:
515
+ - text/xml;charset=UTF-8
516
+ date:
517
+ - Thu, 26 May 2011 16:38:44 GMT
518
+ server:
519
+ - Apache-Coyote/1.1
520
+ transfer-encoding:
521
+ - chunked
522
+ body: |-
523
+ <?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><ns1:OasXmlRequestResponse xmlns:ns1="http://api.oas.tfsm.com/"><result>&lt;?xml version='1.0'?>
524
+ &lt;AdXML>
525
+ &lt;Response>
526
+ &lt;Exception errorCode='370'>&lt;![CDATA[
527
+ error in API request
528
+ line: 43
529
+ message: The content of element type "SecondaryFrequency" must match "(ImpPerVisitor?,FreqScope?)".
530
+ type: Parse Exception]]&gt;&lt;/Exception>
531
+ &lt;/Response>
532
+ &lt;/AdXML></result></ns1:OasXmlRequestResponse></soapenv:Body></soapenv:Envelope>
533
+ http_version: "1.1"
534
+ - !ruby/struct:VCR::HTTPInteraction
535
+ request: !ruby/struct:VCR::Request
536
+ method: :post
537
+ uri: https://training7.247realmedia.com:443/oasapi/OaxApi
538
+ body: |-
539
+ <?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:n1="http://api.oas.tfsm.com/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Body><n1:OasXmlRequest xmlns:n1="http://api.oas.tfsm.com/"><String_1>Abril</String_1><String_2>dev_abril</String_2><String_3>d3v@p1SgpD</String_3><String_4>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
540
+ &lt;AdXML&gt;
541
+ &lt;Request type=&quot;Campaign&quot;&gt;
542
+ &lt;Campaign action=&quot;add&quot;&gt;
543
+ &lt;Overview&gt;
544
+ &lt;Id&gt;random_id_lolwut_wtf&lt;/Id&gt;
545
+ &lt;AdvertiserId&gt;bobo&lt;/AdvertiserId&gt;
546
+ &lt;Name&gt;LOLWUT&lt;/Name&gt;
547
+ &lt;AgencyId&gt;unknown_agency&lt;/AgencyId&gt;
548
+ &lt;Description&gt;&lt;/Description&gt;
549
+ &lt;CampaignManager&gt;lol&lt;/CampaignManager&gt;
550
+ &lt;ProductId&gt;default-product&lt;/ProductId&gt;
551
+ &lt;InternalQuickReport&gt;&lt;/InternalQuickReport&gt;
552
+ &lt;ExternalQuickReport&gt;&lt;/ExternalQuickReport&gt;
553
+ &lt;/Overview&gt;
554
+ &lt;Schedule&gt;
555
+ &lt;Impressions&gt;999&lt;/Impressions&gt;
556
+ &lt;Clicks&gt;0&lt;/Clicks&gt;
557
+ &lt;Uniques&gt;0&lt;/Uniques&gt;
558
+ &lt;Weight&gt;10&lt;/Weight&gt;
559
+ &lt;PriorityLevel&gt;1&lt;/PriorityLevel&gt;
560
+ &lt;Completion&gt;E&lt;/Completion&gt;
561
+ &lt;StartDate&gt;2005-12-01&lt;/StartDate&gt;
562
+ &lt;EndDate&gt;2040-12-01&lt;/EndDate&gt;
563
+ &lt;Reach&gt;O&lt;/Reach&gt;
564
+ &lt;DailyImp&gt;99&lt;/DailyImp&gt;
565
+ &lt;DailyClicks&gt;9&lt;/DailyClicks&gt;
566
+ &lt;DailyUniq&gt;1&lt;/DailyUniq&gt;
567
+ &lt;SmoothOrAsap&gt;S&lt;/SmoothOrAsap&gt;
568
+ &lt;ImpOverrun&gt;2&lt;/ImpOverrun&gt;
569
+ &lt;CompanionPositions&gt;
570
+ &lt;CompanionPosition&gt;B/T&lt;/CompanionPosition&gt;
571
+ &lt;CompanionPosition&gt;BL/TL&lt;/CompanionPosition&gt;
572
+ &lt;/CompanionPositions&gt;
573
+ &lt;StrictCompanions&gt;Y&lt;/StrictCompanions&gt;
574
+ &lt;PrimaryFrequency&gt;
575
+ &lt;ImpPerVisitor&gt;2&lt;/ImpPerVisitor&gt;
576
+ &lt;ClickPerVisitor&gt;0&lt;/ClickPerVisitor&gt;
577
+ &lt;FreqScope&gt;Y&lt;/FreqScope&gt;
578
+ &lt;/PrimaryFrequency&gt;
579
+ &lt;SecondaryFrequency&gt;
580
+ &lt;ImpPerVisitor&gt;2&lt;/ImpPerVisitor&gt;
581
+ &lt;ClickPerVisitor&gt;0&lt;/ClickPerVisitor&gt;
582
+ &lt;FreqScope&gt;Y&lt;/FreqScope&gt;
583
+ &lt;/SecondaryFrequency&gt;
584
+ &lt;HourOfDay&gt;
585
+ &lt;Hour&gt;00&lt;/Hour&gt;
586
+ &lt;Hour&gt;01&lt;/Hour&gt;
587
+ &lt;Hour&gt;23&lt;/Hour&gt;
588
+ &lt;/HourOfDay&gt;
589
+ &lt;DayOfWeek&gt;
590
+ &lt;Day&gt;2&lt;/Day&gt;
591
+ &lt;Day&gt;3&lt;/Day&gt;
592
+ &lt;Day&gt;4&lt;/Day&gt;
593
+ &lt;Day&gt;5&lt;/Day&gt;
594
+ &lt;/DayOfWeek&gt;
595
+ &lt;UserTimeZone&gt;Y&lt;/UserTimeZone&gt;
596
+ &lt;Sections&gt;
597
+ &lt;SectionId&gt;SectionABC&lt;/SectionId&gt;
598
+ &lt;SectionId&gt;SectionDEF&lt;/SectionId&gt;
599
+ &lt;/Sections&gt;
600
+ &lt;/Schedule&gt;
601
+ &lt;/Campaign&gt;
602
+ &lt;/Request&gt;
603
+ &lt;/AdXML&gt;
604
+ </String_4></n1:OasXmlRequest></env:Body></env:Envelope>
605
+ headers:
606
+ content-type:
607
+ - text/xml;charset=UTF-8
608
+ soapaction:
609
+ - "\"OasXmlRequest\""
610
+ response: !ruby/struct:VCR::Response
611
+ status: !ruby/struct:VCR::ResponseStatus
612
+ code: 200
613
+ message: OK
614
+ headers:
615
+ x-powered-by:
616
+ - Servlet 2.5; JBoss-5.0/JBossWeb-2.1
617
+ p3p:
618
+ - CP="NON NID PSAa PSDa OUR IND UNI COM NAV STA",policyref="/w3c/p3p.xml"
619
+ content-type:
620
+ - text/xml;charset=UTF-8
621
+ via:
622
+ - 1.1 training7.247realmedia.com
623
+ server:
624
+ - Apache-Coyote/1.1
625
+ date:
626
+ - Thu, 26 May 2011 16:39:12 GMT
627
+ transfer-encoding:
628
+ - chunked
629
+ body: |-
630
+ <?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><ns1:OasXmlRequestResponse xmlns:ns1="http://api.oas.tfsm.com/"><result>&lt;?xml version='1.0'?>
631
+ &lt;AdXML>
632
+ &lt;Response>
633
+ &lt;Exception errorCode='370'>&lt;![CDATA[
634
+ error in API request
635
+ line: 45
636
+ message: The content of element type "SecondaryFrequency" must match "(ImpPerVisitor?,FreqScope?)".
637
+ type: Parse Exception]]&gt;&lt;/Exception>
638
+ &lt;/Response>
639
+ &lt;/AdXML></result></ns1:OasXmlRequestResponse></soapenv:Body></soapenv:Envelope>
640
+ http_version: "1.1"
641
+ - !ruby/struct:VCR::HTTPInteraction
642
+ request: !ruby/struct:VCR::Request
643
+ method: :post
644
+ uri: https://training7.247realmedia.com:443/oasapi/OaxApi
645
+ body: |-
646
+ <?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:n1="http://api.oas.tfsm.com/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Body><n1:OasXmlRequest xmlns:n1="http://api.oas.tfsm.com/"><String_1>Abril</String_1><String_2>dev_abril</String_2><String_3>d3v@p1SgpD</String_3><String_4>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
647
+ &lt;AdXML&gt;
648
+ &lt;Request type=&quot;Campaign&quot;&gt;
649
+ &lt;Campaign action=&quot;add&quot;&gt;
650
+ &lt;Overview&gt;
651
+ &lt;Id&gt;random_id_lolwut_wtf&lt;/Id&gt;
652
+ &lt;AdvertiserId&gt;bobo&lt;/AdvertiserId&gt;
653
+ &lt;Name&gt;LOLWUT&lt;/Name&gt;
654
+ &lt;AgencyId&gt;unknown_agency&lt;/AgencyId&gt;
655
+ &lt;Description&gt;&lt;/Description&gt;
656
+ &lt;CampaignManager&gt;lol&lt;/CampaignManager&gt;
657
+ &lt;ProductId&gt;default-product&lt;/ProductId&gt;
658
+ &lt;InternalQuickReport&gt;&lt;/InternalQuickReport&gt;
659
+ &lt;ExternalQuickReport&gt;&lt;/ExternalQuickReport&gt;
660
+ &lt;/Overview&gt;
661
+ &lt;Schedule&gt;
662
+ &lt;Impressions&gt;999&lt;/Impressions&gt;
663
+ &lt;Clicks&gt;0&lt;/Clicks&gt;
664
+ &lt;Uniques&gt;0&lt;/Uniques&gt;
665
+ &lt;Weight&gt;10&lt;/Weight&gt;
666
+ &lt;PriorityLevel&gt;1&lt;/PriorityLevel&gt;
667
+ &lt;Completion&gt;E&lt;/Completion&gt;
668
+ &lt;StartDate&gt;2005-12-01&lt;/StartDate&gt;
669
+ &lt;EndDate&gt;2040-12-01&lt;/EndDate&gt;
670
+ &lt;Reach&gt;O&lt;/Reach&gt;
671
+ &lt;DailyImp&gt;99&lt;/DailyImp&gt;
672
+ &lt;DailyClicks&gt;9&lt;/DailyClicks&gt;
673
+ &lt;DailyUniq&gt;1&lt;/DailyUniq&gt;
674
+ &lt;SmoothOrAsap&gt;S&lt;/SmoothOrAsap&gt;
675
+ &lt;ImpOverrun&gt;2&lt;/ImpOverrun&gt;
676
+ &lt;CompanionPositions&gt;
677
+ &lt;CompanionPosition&gt;B/T&lt;/CompanionPosition&gt;
678
+ &lt;CompanionPosition&gt;BL/TL&lt;/CompanionPosition&gt;
679
+ &lt;/CompanionPositions&gt;
680
+ &lt;StrictCompanions&gt;Y&lt;/StrictCompanions&gt;
681
+ &lt;PrimaryFrequency&gt;
682
+ &lt;ImpPerVisitor&gt;2&lt;/ImpPerVisitor&gt;
683
+ &lt;FreqScope&gt;Y&lt;/FreqScope&gt;
684
+ &lt;/PrimaryFrequency&gt;
685
+ &lt;SecondaryFrequency&gt;
686
+ &lt;ImpPerVisitor&gt;2&lt;/ImpPerVisitor&gt;
687
+ &lt;FreqScope&gt;Y&lt;/FreqScope&gt;
688
+ &lt;/SecondaryFrequency&gt;
689
+ &lt;HourOfDay&gt;
690
+ &lt;Hour&gt;00&lt;/Hour&gt;
691
+ &lt;Hour&gt;01&lt;/Hour&gt;
692
+ &lt;Hour&gt;23&lt;/Hour&gt;
693
+ &lt;/HourOfDay&gt;
694
+ &lt;DayOfWeek&gt;
695
+ &lt;Day&gt;2&lt;/Day&gt;
696
+ &lt;Day&gt;3&lt;/Day&gt;
697
+ &lt;Day&gt;4&lt;/Day&gt;
698
+ &lt;Day&gt;5&lt;/Day&gt;
699
+ &lt;/DayOfWeek&gt;
700
+ &lt;UserTimeZone&gt;Y&lt;/UserTimeZone&gt;
701
+ &lt;Sections&gt;
702
+ &lt;SectionId&gt;SectionABC&lt;/SectionId&gt;
703
+ &lt;SectionId&gt;SectionDEF&lt;/SectionId&gt;
704
+ &lt;/Sections&gt;
705
+ &lt;/Schedule&gt;
706
+ &lt;/Campaign&gt;
707
+ &lt;/Request&gt;
708
+ &lt;/AdXML&gt;
709
+ </String_4></n1:OasXmlRequest></env:Body></env:Envelope>
710
+ headers:
711
+ soapaction:
712
+ - "\"OasXmlRequest\""
713
+ content-type:
714
+ - text/xml;charset=UTF-8
715
+ response: !ruby/struct:VCR::Response
716
+ status: !ruby/struct:VCR::ResponseStatus
717
+ code: 200
718
+ message: OK
719
+ headers:
720
+ x-powered-by:
721
+ - Servlet 2.5; JBoss-5.0/JBossWeb-2.1
722
+ p3p:
723
+ - CP="NON NID PSAa PSDa OUR IND UNI COM NAV STA",policyref="/w3c/p3p.xml"
724
+ via:
725
+ - 1.1 training7.247realmedia.com
726
+ content-type:
727
+ - text/xml;charset=UTF-8
728
+ date:
729
+ - Thu, 26 May 2011 16:39:57 GMT
730
+ server:
731
+ - Apache-Coyote/1.1
732
+ transfer-encoding:
733
+ - chunked
734
+ body: |-
735
+ <?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><ns1:OasXmlRequestResponse xmlns:ns1="http://api.oas.tfsm.com/"><result>&lt;?xml version='1.0'?>
736
+ &lt;AdXML>
737
+
738
+ &lt;Response>
739
+ &lt;Campaign>
740
+ &lt;Exception errorCode='502'>ClickPerVisitor must not be blank.&lt;/Exception>
741
+ &lt;/Campaign>
742
+ &lt;/Response>
743
+ &lt;/AdXML></result></ns1:OasXmlRequestResponse></soapenv:Body></soapenv:Envelope>
744
+ http_version: "1.1"
745
+ - !ruby/struct:VCR::HTTPInteraction
746
+ request: !ruby/struct:VCR::Request
747
+ method: :post
748
+ uri: https://training7.247realmedia.com:443/oasapi/OaxApi
749
+ body: |-
750
+ <?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:n1="http://api.oas.tfsm.com/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Body><n1:OasXmlRequest xmlns:n1="http://api.oas.tfsm.com/"><String_1>Abril</String_1><String_2>dev_abril</String_2><String_3>d3v@p1SgpD</String_3><String_4>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
751
+ &lt;AdXML&gt;
752
+ &lt;Request type=&quot;Campaign&quot;&gt;
753
+ &lt;Campaign action=&quot;add&quot;&gt;
754
+ &lt;Overview&gt;
755
+ &lt;Id&gt;random_id_lolwut_wtf&lt;/Id&gt;
756
+ &lt;AdvertiserId&gt;bobo&lt;/AdvertiserId&gt;
757
+ &lt;Name&gt;LOLWUT&lt;/Name&gt;
758
+ &lt;AgencyId&gt;unknown_agency&lt;/AgencyId&gt;
759
+ &lt;Description&gt;&lt;/Description&gt;
760
+ &lt;CampaignManager&gt;lol&lt;/CampaignManager&gt;
761
+ &lt;ProductId&gt;default-product&lt;/ProductId&gt;
762
+ &lt;InternalQuickReport&gt;&lt;/InternalQuickReport&gt;
763
+ &lt;ExternalQuickReport&gt;&lt;/ExternalQuickReport&gt;
764
+ &lt;/Overview&gt;
765
+ &lt;Schedule&gt;
766
+ &lt;Impressions&gt;999&lt;/Impressions&gt;
767
+ &lt;Clicks&gt;0&lt;/Clicks&gt;
768
+ &lt;Uniques&gt;0&lt;/Uniques&gt;
769
+ &lt;Weight&gt;10&lt;/Weight&gt;
770
+ &lt;PriorityLevel&gt;1&lt;/PriorityLevel&gt;
771
+ &lt;Completion&gt;E&lt;/Completion&gt;
772
+ &lt;StartDate&gt;2005-12-01&lt;/StartDate&gt;
773
+ &lt;EndDate&gt;2040-12-01&lt;/EndDate&gt;
774
+ &lt;Reach&gt;O&lt;/Reach&gt;
775
+ &lt;DailyImp&gt;99&lt;/DailyImp&gt;
776
+ &lt;DailyClicks&gt;9&lt;/DailyClicks&gt;
777
+ &lt;DailyUniq&gt;1&lt;/DailyUniq&gt;
778
+ &lt;SmoothOrAsap&gt;S&lt;/SmoothOrAsap&gt;
779
+ &lt;ImpOverrun&gt;2&lt;/ImpOverrun&gt;
780
+ &lt;CompanionPositions&gt;
781
+ &lt;CompanionPosition&gt;B/T&lt;/CompanionPosition&gt;
782
+ &lt;CompanionPosition&gt;BL/TL&lt;/CompanionPosition&gt;
783
+ &lt;/CompanionPositions&gt;
784
+ &lt;StrictCompanions&gt;Y&lt;/StrictCompanions&gt;
785
+ &lt;PrimaryFrequency&gt;
786
+ &lt;ImpPerVisitor&gt;2&lt;/ImpPerVisitor&gt;
787
+ &lt;FreqScope&gt;Y&lt;/FreqScope&gt;
788
+ &lt;ClickPerVisitor&gt;0&lt;/ClickPerVisitor&gt;
789
+ &lt;/PrimaryFrequency&gt;
790
+ &lt;SecondaryFrequency&gt;
791
+ &lt;ImpPerVisitor&gt;2&lt;/ImpPerVisitor&gt;
792
+ &lt;FreqScope&gt;Y&lt;/FreqScope&gt;
793
+ &lt;ClickPerVisitor&gt;0&lt;/ClickPerVisitor&gt;
794
+ &lt;/SecondaryFrequency&gt;
795
+ &lt;HourOfDay&gt;
796
+ &lt;Hour&gt;00&lt;/Hour&gt;
797
+ &lt;Hour&gt;01&lt;/Hour&gt;
798
+ &lt;Hour&gt;23&lt;/Hour&gt;
799
+ &lt;/HourOfDay&gt;
800
+ &lt;DayOfWeek&gt;
801
+ &lt;Day&gt;2&lt;/Day&gt;
802
+ &lt;Day&gt;3&lt;/Day&gt;
803
+ &lt;Day&gt;4&lt;/Day&gt;
804
+ &lt;Day&gt;5&lt;/Day&gt;
805
+ &lt;/DayOfWeek&gt;
806
+ &lt;UserTimeZone&gt;Y&lt;/UserTimeZone&gt;
807
+ &lt;Sections&gt;
808
+ &lt;SectionId&gt;SectionABC&lt;/SectionId&gt;
809
+ &lt;SectionId&gt;SectionDEF&lt;/SectionId&gt;
810
+ &lt;/Sections&gt;
811
+ &lt;/Schedule&gt;
812
+ &lt;/Campaign&gt;
813
+ &lt;/Request&gt;
814
+ &lt;/AdXML&gt;
815
+ </String_4></n1:OasXmlRequest></env:Body></env:Envelope>
816
+ headers:
817
+ content-type:
818
+ - text/xml;charset=UTF-8
819
+ soapaction:
820
+ - "\"OasXmlRequest\""
821
+ response: !ruby/struct:VCR::Response
822
+ status: !ruby/struct:VCR::ResponseStatus
823
+ code: 200
824
+ message: OK
825
+ headers:
826
+ x-powered-by:
827
+ - Servlet 2.5; JBoss-5.0/JBossWeb-2.1
828
+ p3p:
829
+ - CP="NON NID PSAa PSDa OUR IND UNI COM NAV STA",policyref="/w3c/p3p.xml"
830
+ content-type:
831
+ - text/xml;charset=UTF-8
832
+ via:
833
+ - 1.1 training7.247realmedia.com
834
+ server:
835
+ - Apache-Coyote/1.1
836
+ date:
837
+ - Thu, 26 May 2011 16:40:25 GMT
838
+ transfer-encoding:
839
+ - chunked
840
+ body: |-
841
+ <?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><ns1:OasXmlRequestResponse xmlns:ns1="http://api.oas.tfsm.com/"><result>&lt;?xml version='1.0'?>
842
+ &lt;AdXML>
843
+ &lt;Response>
844
+ &lt;Exception errorCode='370'>&lt;![CDATA[
845
+ error in API request
846
+ line: 45
847
+ message: The content of element type "SecondaryFrequency" must match "(ImpPerVisitor?,FreqScope?)".
848
+ type: Parse Exception]]&gt;&lt;/Exception>
849
+ &lt;/Response>
850
+ &lt;/AdXML></result></ns1:OasXmlRequestResponse></soapenv:Body></soapenv:Envelope>
851
+ http_version: "1.1"
852
+ - !ruby/struct:VCR::HTTPInteraction
853
+ request: !ruby/struct:VCR::Request
854
+ method: :post
855
+ uri: https://training7.247realmedia.com:443/oasapi/OaxApi
856
+ body: |-
857
+ <?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:n1="http://api.oas.tfsm.com/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Body><n1:OasXmlRequest xmlns:n1="http://api.oas.tfsm.com/"><String_1>Abril</String_1><String_2>dev_abril</String_2><String_3>d3v@p1SgpD</String_3><String_4>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
858
+ &lt;AdXML&gt;
859
+ &lt;Request type=&quot;Campaign&quot;&gt;
860
+ &lt;Campaign action=&quot;add&quot;&gt;
861
+ &lt;Overview&gt;
862
+ &lt;Id&gt;random_id_lolwut_wtf&lt;/Id&gt;
863
+ &lt;AdvertiserId&gt;bobo&lt;/AdvertiserId&gt;
864
+ &lt;Name&gt;LOLWUT&lt;/Name&gt;
865
+ &lt;AgencyId&gt;unknown_agency&lt;/AgencyId&gt;
866
+ &lt;Description&gt;&lt;/Description&gt;
867
+ &lt;CampaignManager&gt;lol&lt;/CampaignManager&gt;
868
+ &lt;ProductId&gt;default-product&lt;/ProductId&gt;
869
+ &lt;InternalQuickReport&gt;&lt;/InternalQuickReport&gt;
870
+ &lt;ExternalQuickReport&gt;&lt;/ExternalQuickReport&gt;
871
+ &lt;/Overview&gt;
872
+ &lt;Schedule&gt;
873
+ &lt;Impressions&gt;999&lt;/Impressions&gt;
874
+ &lt;Clicks&gt;0&lt;/Clicks&gt;
875
+ &lt;Uniques&gt;0&lt;/Uniques&gt;
876
+ &lt;Weight&gt;10&lt;/Weight&gt;
877
+ &lt;PriorityLevel&gt;1&lt;/PriorityLevel&gt;
878
+ &lt;Completion&gt;E&lt;/Completion&gt;
879
+ &lt;StartDate&gt;2005-12-01&lt;/StartDate&gt;
880
+ &lt;EndDate&gt;2040-12-01&lt;/EndDate&gt;
881
+ &lt;Reach&gt;O&lt;/Reach&gt;
882
+ &lt;DailyImp&gt;99&lt;/DailyImp&gt;
883
+ &lt;DailyClicks&gt;9&lt;/DailyClicks&gt;
884
+ &lt;DailyUniq&gt;1&lt;/DailyUniq&gt;
885
+ &lt;SmoothOrAsap&gt;S&lt;/SmoothOrAsap&gt;
886
+ &lt;ImpOverrun&gt;2&lt;/ImpOverrun&gt;
887
+ &lt;CompanionPositions&gt;
888
+ &lt;CompanionPosition&gt;B/T&lt;/CompanionPosition&gt;
889
+ &lt;CompanionPosition&gt;BL/TL&lt;/CompanionPosition&gt;
890
+ &lt;/CompanionPositions&gt;
891
+ &lt;StrictCompanions&gt;Y&lt;/StrictCompanions&gt;
892
+ &lt;PrimaryFrequency&gt;
893
+ &lt;ImpPerVisitor&gt;2&lt;/ImpPerVisitor&gt;
894
+ &lt;FreqScope&gt;Y&lt;/FreqScope&gt;
895
+ &lt;ClickPerVisitor&gt;0&lt;/ClickPerVisitor&gt;
896
+ &lt;/PrimaryFrequency&gt;
897
+ &lt;SecondaryFrequency&gt;
898
+ &lt;ImpPerVisitor&gt;2&lt;/ImpPerVisitor&gt;
899
+ &lt;FreqScope&gt;Y&lt;/FreqScope&gt;
900
+ &lt;/SecondaryFrequency&gt;
901
+ &lt;HourOfDay&gt;
902
+ &lt;Hour&gt;00&lt;/Hour&gt;
903
+ &lt;Hour&gt;01&lt;/Hour&gt;
904
+ &lt;Hour&gt;23&lt;/Hour&gt;
905
+ &lt;/HourOfDay&gt;
906
+ &lt;DayOfWeek&gt;
907
+ &lt;Day&gt;2&lt;/Day&gt;
908
+ &lt;Day&gt;3&lt;/Day&gt;
909
+ &lt;Day&gt;4&lt;/Day&gt;
910
+ &lt;Day&gt;5&lt;/Day&gt;
911
+ &lt;/DayOfWeek&gt;
912
+ &lt;UserTimeZone&gt;Y&lt;/UserTimeZone&gt;
913
+ &lt;Sections&gt;
914
+ &lt;SectionId&gt;SectionABC&lt;/SectionId&gt;
915
+ &lt;SectionId&gt;SectionDEF&lt;/SectionId&gt;
916
+ &lt;/Sections&gt;
917
+ &lt;/Schedule&gt;
918
+ &lt;/Campaign&gt;
919
+ &lt;/Request&gt;
920
+ &lt;/AdXML&gt;
921
+ </String_4></n1:OasXmlRequest></env:Body></env:Envelope>
922
+ headers:
923
+ soapaction:
924
+ - "\"OasXmlRequest\""
925
+ content-type:
926
+ - text/xml;charset=UTF-8
927
+ response: !ruby/struct:VCR::Response
928
+ status: !ruby/struct:VCR::ResponseStatus
929
+ code: 200
930
+ message: OK
931
+ headers:
932
+ x-powered-by:
933
+ - Servlet 2.5; JBoss-5.0/JBossWeb-2.1
934
+ p3p:
935
+ - CP="NON NID PSAa PSDa OUR IND UNI COM NAV STA",policyref="/w3c/p3p.xml"
936
+ via:
937
+ - 1.1 training7.247realmedia.com
938
+ content-type:
939
+ - text/xml;charset=UTF-8
940
+ date:
941
+ - Thu, 26 May 2011 16:40:40 GMT
942
+ server:
943
+ - Apache-Coyote/1.1
944
+ transfer-encoding:
945
+ - chunked
946
+ body: |-
947
+ <?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><ns1:OasXmlRequestResponse xmlns:ns1="http://api.oas.tfsm.com/"><result>&lt;?xml version='1.0'?>
948
+ &lt;AdXML>
949
+ &lt;Response>
950
+ &lt;Exception errorCode='370'>&lt;![CDATA[
951
+ error in API request
952
+ line: 40
953
+ message: The content of element type "PrimaryFrequency" must match "(ImpPerVisitor?,ClickPerVisitor?,FreqScope?)".
954
+ type: Parse Exception]]&gt;&lt;/Exception>
955
+ &lt;/Response>
956
+ &lt;/AdXML></result></ns1:OasXmlRequestResponse></soapenv:Body></soapenv:Envelope>
957
+ http_version: "1.1"
958
+ - !ruby/struct:VCR::HTTPInteraction
959
+ request: !ruby/struct:VCR::Request
960
+ method: :post
961
+ uri: https://training7.247realmedia.com:443/oasapi/OaxApi
962
+ body: |-
963
+ <?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:n1="http://api.oas.tfsm.com/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Body><n1:OasXmlRequest xmlns:n1="http://api.oas.tfsm.com/"><String_1>Abril</String_1><String_2>dev_abril</String_2><String_3>d3v@p1SgpD</String_3><String_4>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
964
+ &lt;AdXML&gt;
965
+ &lt;Request type=&quot;Campaign&quot;&gt;
966
+ &lt;Campaign action=&quot;add&quot;&gt;
967
+ &lt;Overview&gt;
968
+ &lt;Id&gt;random_id_lolwut_wtf&lt;/Id&gt;
969
+ &lt;AdvertiserId&gt;bobo&lt;/AdvertiserId&gt;
970
+ &lt;Name&gt;LOLWUT&lt;/Name&gt;
971
+ &lt;AgencyId&gt;unknown_agency&lt;/AgencyId&gt;
972
+ &lt;Description&gt;&lt;/Description&gt;
973
+ &lt;CampaignManager&gt;lol&lt;/CampaignManager&gt;
974
+ &lt;ProductId&gt;default-product&lt;/ProductId&gt;
975
+ &lt;InternalQuickReport&gt;&lt;/InternalQuickReport&gt;
976
+ &lt;ExternalQuickReport&gt;&lt;/ExternalQuickReport&gt;
977
+ &lt;/Overview&gt;
978
+ &lt;Schedule&gt;
979
+ &lt;Impressions&gt;999&lt;/Impressions&gt;
980
+ &lt;Clicks&gt;0&lt;/Clicks&gt;
981
+ &lt;Uniques&gt;0&lt;/Uniques&gt;
982
+ &lt;Weight&gt;10&lt;/Weight&gt;
983
+ &lt;PriorityLevel&gt;1&lt;/PriorityLevel&gt;
984
+ &lt;Completion&gt;E&lt;/Completion&gt;
985
+ &lt;StartDate&gt;2005-12-01&lt;/StartDate&gt;
986
+ &lt;EndDate&gt;2040-12-01&lt;/EndDate&gt;
987
+ &lt;Reach&gt;O&lt;/Reach&gt;
988
+ &lt;DailyImp&gt;99&lt;/DailyImp&gt;
989
+ &lt;DailyClicks&gt;9&lt;/DailyClicks&gt;
990
+ &lt;DailyUniq&gt;1&lt;/DailyUniq&gt;
991
+ &lt;SmoothOrAsap&gt;S&lt;/SmoothOrAsap&gt;
992
+ &lt;ImpOverrun&gt;2&lt;/ImpOverrun&gt;
993
+ &lt;CompanionPositions&gt;
994
+ &lt;CompanionPosition&gt;B/T&lt;/CompanionPosition&gt;
995
+ &lt;CompanionPosition&gt;BL/TL&lt;/CompanionPosition&gt;
996
+ &lt;/CompanionPositions&gt;
997
+ &lt;StrictCompanions&gt;Y&lt;/StrictCompanions&gt;
998
+ &lt;PrimaryFrequency&gt;
999
+ &lt;ImpPerVisitor&gt;2&lt;/ImpPerVisitor&gt;
1000
+ &lt;ClickPerVisitor&gt;0&lt;/ClickPerVisitor&gt;
1001
+ &lt;FreqScope&gt;Y&lt;/FreqScope&gt;
1002
+ &lt;/PrimaryFrequency&gt;
1003
+ &lt;SecondaryFrequency&gt;
1004
+ &lt;ImpPerVisitor&gt;2&lt;/ImpPerVisitor&gt;
1005
+ &lt;FreqScope&gt;Y&lt;/FreqScope&gt;
1006
+ &lt;/SecondaryFrequency&gt;
1007
+ &lt;HourOfDay&gt;
1008
+ &lt;Hour&gt;00&lt;/Hour&gt;
1009
+ &lt;Hour&gt;01&lt;/Hour&gt;
1010
+ &lt;Hour&gt;23&lt;/Hour&gt;
1011
+ &lt;/HourOfDay&gt;
1012
+ &lt;DayOfWeek&gt;
1013
+ &lt;Day&gt;2&lt;/Day&gt;
1014
+ &lt;Day&gt;3&lt;/Day&gt;
1015
+ &lt;Day&gt;4&lt;/Day&gt;
1016
+ &lt;Day&gt;5&lt;/Day&gt;
1017
+ &lt;/DayOfWeek&gt;
1018
+ &lt;UserTimeZone&gt;Y&lt;/UserTimeZone&gt;
1019
+ &lt;Sections&gt;
1020
+ &lt;SectionId&gt;SectionABC&lt;/SectionId&gt;
1021
+ &lt;SectionId&gt;SectionDEF&lt;/SectionId&gt;
1022
+ &lt;/Sections&gt;
1023
+ &lt;/Schedule&gt;
1024
+ &lt;/Campaign&gt;
1025
+ &lt;/Request&gt;
1026
+ &lt;/AdXML&gt;
1027
+ </String_4></n1:OasXmlRequest></env:Body></env:Envelope>
1028
+ headers:
1029
+ content-type:
1030
+ - text/xml;charset=UTF-8
1031
+ soapaction:
1032
+ - "\"OasXmlRequest\""
1033
+ response: !ruby/struct:VCR::Response
1034
+ status: !ruby/struct:VCR::ResponseStatus
1035
+ code: 200
1036
+ message: OK
1037
+ headers:
1038
+ x-powered-by:
1039
+ - Servlet 2.5; JBoss-5.0/JBossWeb-2.1
1040
+ p3p:
1041
+ - CP="NON NID PSAa PSDa OUR IND UNI COM NAV STA",policyref="/w3c/p3p.xml"
1042
+ content-type:
1043
+ - text/xml;charset=UTF-8
1044
+ via:
1045
+ - 1.1 training7.247realmedia.com
1046
+ server:
1047
+ - Apache-Coyote/1.1
1048
+ date:
1049
+ - Thu, 26 May 2011 16:41:05 GMT
1050
+ transfer-encoding:
1051
+ - chunked
1052
+ body: |-
1053
+ <?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><ns1:OasXmlRequestResponse xmlns:ns1="http://api.oas.tfsm.com/"><result>&lt;?xml version='1.0'?>
1054
+ &lt;AdXML>
1055
+
1056
+ &lt;Response>
1057
+ &lt;Campaign>
1058
+ &lt;Exception errorCode='500'>Y is an invalid option for FreqScope (0,1,2,3,4,5,6)&lt;/Exception>
1059
+ &lt;/Campaign>
1060
+ &lt;/Response>
1061
+ &lt;/AdXML></result></ns1:OasXmlRequestResponse></soapenv:Body></soapenv:Envelope>
1062
+ http_version: "1.1"
1063
+ - !ruby/struct:VCR::HTTPInteraction
1064
+ request: !ruby/struct:VCR::Request
1065
+ method: :post
1066
+ uri: https://training7.247realmedia.com:443/oasapi/OaxApi
1067
+ body: |-
1068
+ <?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:n1="http://api.oas.tfsm.com/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Body><n1:OasXmlRequest xmlns:n1="http://api.oas.tfsm.com/"><String_1>Abril</String_1><String_2>dev_abril</String_2><String_3>d3v@p1SgpD</String_3><String_4>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
1069
+ &lt;AdXML&gt;
1070
+ &lt;Request type=&quot;Campaign&quot;&gt;
1071
+ &lt;Campaign action=&quot;add&quot;&gt;
1072
+ &lt;Overview&gt;
1073
+ &lt;Id&gt;random_id_lolwut_wtf&lt;/Id&gt;
1074
+ &lt;AdvertiserId&gt;bobo&lt;/AdvertiserId&gt;
1075
+ &lt;Name&gt;LOLWUT&lt;/Name&gt;
1076
+ &lt;AgencyId&gt;unknown_agency&lt;/AgencyId&gt;
1077
+ &lt;Description&gt;&lt;/Description&gt;
1078
+ &lt;CampaignManager&gt;lol&lt;/CampaignManager&gt;
1079
+ &lt;ProductId&gt;default-product&lt;/ProductId&gt;
1080
+ &lt;InternalQuickReport&gt;&lt;/InternalQuickReport&gt;
1081
+ &lt;ExternalQuickReport&gt;&lt;/ExternalQuickReport&gt;
1082
+ &lt;/Overview&gt;
1083
+ &lt;Schedule&gt;
1084
+ &lt;Impressions&gt;999&lt;/Impressions&gt;
1085
+ &lt;Clicks&gt;0&lt;/Clicks&gt;
1086
+ &lt;Uniques&gt;0&lt;/Uniques&gt;
1087
+ &lt;Weight&gt;10&lt;/Weight&gt;
1088
+ &lt;PriorityLevel&gt;1&lt;/PriorityLevel&gt;
1089
+ &lt;Completion&gt;E&lt;/Completion&gt;
1090
+ &lt;StartDate&gt;2005-12-01&lt;/StartDate&gt;
1091
+ &lt;EndDate&gt;2040-12-01&lt;/EndDate&gt;
1092
+ &lt;Reach&gt;O&lt;/Reach&gt;
1093
+ &lt;DailyImp&gt;99&lt;/DailyImp&gt;
1094
+ &lt;DailyClicks&gt;9&lt;/DailyClicks&gt;
1095
+ &lt;DailyUniq&gt;1&lt;/DailyUniq&gt;
1096
+ &lt;SmoothOrAsap&gt;S&lt;/SmoothOrAsap&gt;
1097
+ &lt;ImpOverrun&gt;2&lt;/ImpOverrun&gt;
1098
+ &lt;CompanionPositions&gt;
1099
+ &lt;CompanionPosition&gt;B/T&lt;/CompanionPosition&gt;
1100
+ &lt;CompanionPosition&gt;BL/TL&lt;/CompanionPosition&gt;
1101
+ &lt;/CompanionPositions&gt;
1102
+ &lt;StrictCompanions&gt;Y&lt;/StrictCompanions&gt;
1103
+ &lt;PrimaryFrequency&gt;
1104
+ &lt;ImpPerVisitor&gt;2&lt;/ImpPerVisitor&gt;
1105
+ &lt;ClickPerVisitor&gt;0&lt;/ClickPerVisitor&gt;
1106
+ &lt;FreqScope&gt;1&lt;/FreqScope&gt;
1107
+ &lt;/PrimaryFrequency&gt;
1108
+ &lt;SecondaryFrequency&gt;
1109
+ &lt;ImpPerVisitor&gt;2&lt;/ImpPerVisitor&gt;
1110
+ &lt;FreqScope&gt;1&lt;/FreqScope&gt;
1111
+ &lt;/SecondaryFrequency&gt;
1112
+ &lt;HourOfDay&gt;
1113
+ &lt;Hour&gt;00&lt;/Hour&gt;
1114
+ &lt;Hour&gt;01&lt;/Hour&gt;
1115
+ &lt;Hour&gt;23&lt;/Hour&gt;
1116
+ &lt;/HourOfDay&gt;
1117
+ &lt;DayOfWeek&gt;
1118
+ &lt;Day&gt;2&lt;/Day&gt;
1119
+ &lt;Day&gt;3&lt;/Day&gt;
1120
+ &lt;Day&gt;4&lt;/Day&gt;
1121
+ &lt;Day&gt;5&lt;/Day&gt;
1122
+ &lt;/DayOfWeek&gt;
1123
+ &lt;UserTimeZone&gt;Y&lt;/UserTimeZone&gt;
1124
+ &lt;Sections&gt;
1125
+ &lt;SectionId&gt;SectionABC&lt;/SectionId&gt;
1126
+ &lt;SectionId&gt;SectionDEF&lt;/SectionId&gt;
1127
+ &lt;/Sections&gt;
1128
+ &lt;/Schedule&gt;
1129
+ &lt;/Campaign&gt;
1130
+ &lt;/Request&gt;
1131
+ &lt;/AdXML&gt;
1132
+ </String_4></n1:OasXmlRequest></env:Body></env:Envelope>
1133
+ headers:
1134
+ soapaction:
1135
+ - "\"OasXmlRequest\""
1136
+ content-type:
1137
+ - text/xml;charset=UTF-8
1138
+ response: !ruby/struct:VCR::Response
1139
+ status: !ruby/struct:VCR::ResponseStatus
1140
+ code: 200
1141
+ message: OK
1142
+ headers:
1143
+ x-powered-by:
1144
+ - Servlet 2.5; JBoss-5.0/JBossWeb-2.1
1145
+ p3p:
1146
+ - CP="NON NID PSAa PSDa OUR IND UNI COM NAV STA",policyref="/w3c/p3p.xml"
1147
+ via:
1148
+ - 1.1 training7.247realmedia.com
1149
+ content-type:
1150
+ - text/xml;charset=UTF-8
1151
+ date:
1152
+ - Thu, 26 May 2011 16:41:36 GMT
1153
+ server:
1154
+ - Apache-Coyote/1.1
1155
+ transfer-encoding:
1156
+ - chunked
1157
+ body: |-
1158
+ <?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><ns1:OasXmlRequestResponse xmlns:ns1="http://api.oas.tfsm.com/"><result>&lt;?xml version='1.0'?>
1159
+ &lt;AdXML>
1160
+
1161
+ &lt;Response>
1162
+ &lt;Campaign>
1163
+ &lt;Exception errorCode='590'>Primary and Secondary Frequency Scope must not be equivalent.&lt;/Exception>
1164
+ &lt;/Campaign>
1165
+ &lt;/Response>
1166
+ &lt;/AdXML></result></ns1:OasXmlRequestResponse></soapenv:Body></soapenv:Envelope>
1167
+ http_version: "1.1"
1168
+ - !ruby/struct:VCR::HTTPInteraction
1169
+ request: !ruby/struct:VCR::Request
1170
+ method: :post
1171
+ uri: https://training7.247realmedia.com:443/oasapi/OaxApi
1172
+ body: |-
1173
+ <?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:n1="http://api.oas.tfsm.com/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Body><n1:OasXmlRequest xmlns:n1="http://api.oas.tfsm.com/"><String_1>Abril</String_1><String_2>dev_abril</String_2><String_3>d3v@p1SgpD</String_3><String_4>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
1174
+ &lt;AdXML&gt;
1175
+ &lt;Request type=&quot;Campaign&quot;&gt;
1176
+ &lt;Campaign action=&quot;add&quot;&gt;
1177
+ &lt;Overview&gt;
1178
+ &lt;Id&gt;random_id_lolwut_wtf&lt;/Id&gt;
1179
+ &lt;AdvertiserId&gt;bobo&lt;/AdvertiserId&gt;
1180
+ &lt;Name&gt;LOLWUT&lt;/Name&gt;
1181
+ &lt;AgencyId&gt;unknown_agency&lt;/AgencyId&gt;
1182
+ &lt;Description&gt;&lt;/Description&gt;
1183
+ &lt;CampaignManager&gt;lol&lt;/CampaignManager&gt;
1184
+ &lt;ProductId&gt;default-product&lt;/ProductId&gt;
1185
+ &lt;InternalQuickReport&gt;&lt;/InternalQuickReport&gt;
1186
+ &lt;ExternalQuickReport&gt;&lt;/ExternalQuickReport&gt;
1187
+ &lt;/Overview&gt;
1188
+ &lt;Schedule&gt;
1189
+ &lt;Impressions&gt;999&lt;/Impressions&gt;
1190
+ &lt;Clicks&gt;0&lt;/Clicks&gt;
1191
+ &lt;Uniques&gt;0&lt;/Uniques&gt;
1192
+ &lt;Weight&gt;10&lt;/Weight&gt;
1193
+ &lt;PriorityLevel&gt;1&lt;/PriorityLevel&gt;
1194
+ &lt;Completion&gt;E&lt;/Completion&gt;
1195
+ &lt;StartDate&gt;2005-12-01&lt;/StartDate&gt;
1196
+ &lt;EndDate&gt;2040-12-01&lt;/EndDate&gt;
1197
+ &lt;Reach&gt;O&lt;/Reach&gt;
1198
+ &lt;DailyImp&gt;99&lt;/DailyImp&gt;
1199
+ &lt;DailyClicks&gt;9&lt;/DailyClicks&gt;
1200
+ &lt;DailyUniq&gt;1&lt;/DailyUniq&gt;
1201
+ &lt;SmoothOrAsap&gt;S&lt;/SmoothOrAsap&gt;
1202
+ &lt;ImpOverrun&gt;2&lt;/ImpOverrun&gt;
1203
+ &lt;CompanionPositions&gt;
1204
+ &lt;CompanionPosition&gt;B/T&lt;/CompanionPosition&gt;
1205
+ &lt;CompanionPosition&gt;BL/TL&lt;/CompanionPosition&gt;
1206
+ &lt;/CompanionPositions&gt;
1207
+ &lt;StrictCompanions&gt;Y&lt;/StrictCompanions&gt;
1208
+ &lt;PrimaryFrequency&gt;
1209
+ &lt;ImpPerVisitor&gt;3&lt;/ImpPerVisitor&gt;
1210
+ &lt;ClickPerVisitor&gt;0&lt;/ClickPerVisitor&gt;
1211
+ &lt;FreqScope&gt;1&lt;/FreqScope&gt;
1212
+ &lt;/PrimaryFrequency&gt;
1213
+ &lt;SecondaryFrequency&gt;
1214
+ &lt;ImpPerVisitor&gt;3&lt;/ImpPerVisitor&gt;
1215
+ &lt;FreqScope&gt;1&lt;/FreqScope&gt;
1216
+ &lt;/SecondaryFrequency&gt;
1217
+ &lt;HourOfDay&gt;
1218
+ &lt;Hour&gt;00&lt;/Hour&gt;
1219
+ &lt;Hour&gt;01&lt;/Hour&gt;
1220
+ &lt;Hour&gt;23&lt;/Hour&gt;
1221
+ &lt;/HourOfDay&gt;
1222
+ &lt;DayOfWeek&gt;
1223
+ &lt;Day&gt;2&lt;/Day&gt;
1224
+ &lt;Day&gt;3&lt;/Day&gt;
1225
+ &lt;Day&gt;4&lt;/Day&gt;
1226
+ &lt;Day&gt;5&lt;/Day&gt;
1227
+ &lt;/DayOfWeek&gt;
1228
+ &lt;UserTimeZone&gt;Y&lt;/UserTimeZone&gt;
1229
+ &lt;Sections&gt;
1230
+ &lt;SectionId&gt;SectionABC&lt;/SectionId&gt;
1231
+ &lt;SectionId&gt;SectionDEF&lt;/SectionId&gt;
1232
+ &lt;/Sections&gt;
1233
+ &lt;/Schedule&gt;
1234
+ &lt;/Campaign&gt;
1235
+ &lt;/Request&gt;
1236
+ &lt;/AdXML&gt;
1237
+ </String_4></n1:OasXmlRequest></env:Body></env:Envelope>
1238
+ headers:
1239
+ content-type:
1240
+ - text/xml;charset=UTF-8
1241
+ soapaction:
1242
+ - "\"OasXmlRequest\""
1243
+ response: !ruby/struct:VCR::Response
1244
+ status: !ruby/struct:VCR::ResponseStatus
1245
+ code: 200
1246
+ message: OK
1247
+ headers:
1248
+ x-powered-by:
1249
+ - Servlet 2.5; JBoss-5.0/JBossWeb-2.1
1250
+ p3p:
1251
+ - CP="NON NID PSAa PSDa OUR IND UNI COM NAV STA",policyref="/w3c/p3p.xml"
1252
+ content-type:
1253
+ - text/xml;charset=UTF-8
1254
+ via:
1255
+ - 1.1 training7.247realmedia.com
1256
+ server:
1257
+ - Apache-Coyote/1.1
1258
+ date:
1259
+ - Thu, 26 May 2011 16:42:34 GMT
1260
+ transfer-encoding:
1261
+ - chunked
1262
+ body: |-
1263
+ <?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><ns1:OasXmlRequestResponse xmlns:ns1="http://api.oas.tfsm.com/"><result>&lt;?xml version='1.0'?>
1264
+ &lt;AdXML>
1265
+
1266
+ &lt;Response>
1267
+ &lt;Campaign>
1268
+ &lt;Exception errorCode='590'>Primary and Secondary Frequency Scope must not be equivalent.&lt;/Exception>
1269
+ &lt;/Campaign>
1270
+ &lt;/Response>
1271
+ &lt;/AdXML></result></ns1:OasXmlRequestResponse></soapenv:Body></soapenv:Envelope>
1272
+ http_version: "1.1"
1273
+ - !ruby/struct:VCR::HTTPInteraction
1274
+ request: !ruby/struct:VCR::Request
1275
+ method: :post
1276
+ uri: https://training7.247realmedia.com:443/oasapi/OaxApi
1277
+ body: |-
1278
+ <?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:n1="http://api.oas.tfsm.com/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Body><n1:OasXmlRequest xmlns:n1="http://api.oas.tfsm.com/"><String_1>Abril</String_1><String_2>dev_abril</String_2><String_3>d3v@p1SgpD</String_3><String_4>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
1279
+ &lt;AdXML&gt;
1280
+ &lt;Request type=&quot;Campaign&quot;&gt;
1281
+ &lt;Campaign action=&quot;add&quot;&gt;
1282
+ &lt;Overview&gt;
1283
+ &lt;Id&gt;random_id_lolwut_wtf&lt;/Id&gt;
1284
+ &lt;AdvertiserId&gt;bobo&lt;/AdvertiserId&gt;
1285
+ &lt;Name&gt;LOLWUT&lt;/Name&gt;
1286
+ &lt;AgencyId&gt;unknown_agency&lt;/AgencyId&gt;
1287
+ &lt;Description&gt;&lt;/Description&gt;
1288
+ &lt;CampaignManager&gt;lol&lt;/CampaignManager&gt;
1289
+ &lt;ProductId&gt;default-product&lt;/ProductId&gt;
1290
+ &lt;InternalQuickReport&gt;&lt;/InternalQuickReport&gt;
1291
+ &lt;ExternalQuickReport&gt;&lt;/ExternalQuickReport&gt;
1292
+ &lt;/Overview&gt;
1293
+ &lt;Schedule&gt;
1294
+ &lt;Impressions&gt;999&lt;/Impressions&gt;
1295
+ &lt;Clicks&gt;0&lt;/Clicks&gt;
1296
+ &lt;Uniques&gt;0&lt;/Uniques&gt;
1297
+ &lt;Weight&gt;10&lt;/Weight&gt;
1298
+ &lt;PriorityLevel&gt;1&lt;/PriorityLevel&gt;
1299
+ &lt;Completion&gt;E&lt;/Completion&gt;
1300
+ &lt;StartDate&gt;2005-12-01&lt;/StartDate&gt;
1301
+ &lt;EndDate&gt;2040-12-01&lt;/EndDate&gt;
1302
+ &lt;Reach&gt;O&lt;/Reach&gt;
1303
+ &lt;DailyImp&gt;99&lt;/DailyImp&gt;
1304
+ &lt;DailyClicks&gt;9&lt;/DailyClicks&gt;
1305
+ &lt;DailyUniq&gt;1&lt;/DailyUniq&gt;
1306
+ &lt;SmoothOrAsap&gt;S&lt;/SmoothOrAsap&gt;
1307
+ &lt;ImpOverrun&gt;2&lt;/ImpOverrun&gt;
1308
+ &lt;CompanionPositions&gt;
1309
+ &lt;CompanionPosition&gt;B/T&lt;/CompanionPosition&gt;
1310
+ &lt;CompanionPosition&gt;BL/TL&lt;/CompanionPosition&gt;
1311
+ &lt;/CompanionPositions&gt;
1312
+ &lt;StrictCompanions&gt;Y&lt;/StrictCompanions&gt;
1313
+ &lt;PrimaryFrequency&gt;
1314
+ &lt;ImpPerVisitor&gt;3&lt;/ImpPerVisitor&gt;
1315
+ &lt;ClickPerVisitor&gt;0&lt;/ClickPerVisitor&gt;
1316
+ &lt;FreqScope&gt;4&lt;/FreqScope&gt;
1317
+ &lt;/PrimaryFrequency&gt;
1318
+ &lt;SecondaryFrequency&gt;
1319
+ &lt;ImpPerVisitor&gt;3&lt;/ImpPerVisitor&gt;
1320
+ &lt;FreqScope&gt;4&lt;/FreqScope&gt;
1321
+ &lt;/SecondaryFrequency&gt;
1322
+ &lt;HourOfDay&gt;
1323
+ &lt;Hour&gt;00&lt;/Hour&gt;
1324
+ &lt;Hour&gt;01&lt;/Hour&gt;
1325
+ &lt;Hour&gt;23&lt;/Hour&gt;
1326
+ &lt;/HourOfDay&gt;
1327
+ &lt;DayOfWeek&gt;
1328
+ &lt;Day&gt;2&lt;/Day&gt;
1329
+ &lt;Day&gt;3&lt;/Day&gt;
1330
+ &lt;Day&gt;4&lt;/Day&gt;
1331
+ &lt;Day&gt;5&lt;/Day&gt;
1332
+ &lt;/DayOfWeek&gt;
1333
+ &lt;UserTimeZone&gt;Y&lt;/UserTimeZone&gt;
1334
+ &lt;Sections&gt;
1335
+ &lt;SectionId&gt;SectionABC&lt;/SectionId&gt;
1336
+ &lt;SectionId&gt;SectionDEF&lt;/SectionId&gt;
1337
+ &lt;/Sections&gt;
1338
+ &lt;/Schedule&gt;
1339
+ &lt;/Campaign&gt;
1340
+ &lt;/Request&gt;
1341
+ &lt;/AdXML&gt;
1342
+ </String_4></n1:OasXmlRequest></env:Body></env:Envelope>
1343
+ headers:
1344
+ soapaction:
1345
+ - "\"OasXmlRequest\""
1346
+ content-type:
1347
+ - text/xml;charset=UTF-8
1348
+ response: !ruby/struct:VCR::Response
1349
+ status: !ruby/struct:VCR::ResponseStatus
1350
+ code: 200
1351
+ message: OK
1352
+ headers:
1353
+ x-powered-by:
1354
+ - Servlet 2.5; JBoss-5.0/JBossWeb-2.1
1355
+ p3p:
1356
+ - CP="NON NID PSAa PSDa OUR IND UNI COM NAV STA",policyref="/w3c/p3p.xml"
1357
+ via:
1358
+ - 1.1 training7.247realmedia.com
1359
+ content-type:
1360
+ - text/xml;charset=UTF-8
1361
+ date:
1362
+ - Thu, 26 May 2011 16:43:17 GMT
1363
+ server:
1364
+ - Apache-Coyote/1.1
1365
+ transfer-encoding:
1366
+ - chunked
1367
+ body: |-
1368
+ <?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><ns1:OasXmlRequestResponse xmlns:ns1="http://api.oas.tfsm.com/"><result>&lt;?xml version='1.0'?>
1369
+ &lt;AdXML>
1370
+
1371
+ &lt;Response>
1372
+ &lt;Campaign>
1373
+ &lt;Exception errorCode='590'>Primary and Secondary Frequency Scope must not be equivalent.&lt;/Exception>
1374
+ &lt;/Campaign>
1375
+ &lt;/Response>
1376
+ &lt;/AdXML></result></ns1:OasXmlRequestResponse></soapenv:Body></soapenv:Envelope>
1377
+ http_version: "1.1"
1378
+ - !ruby/struct:VCR::HTTPInteraction
1379
+ request: !ruby/struct:VCR::Request
1380
+ method: :post
1381
+ uri: https://training7.247realmedia.com:443/oasapi/OaxApi
1382
+ body: |-
1383
+ <?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:n1="http://api.oas.tfsm.com/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Body><n1:OasXmlRequest xmlns:n1="http://api.oas.tfsm.com/"><String_1>Abril</String_1><String_2>dev_abril</String_2><String_3>d3v@p1SgpD</String_3><String_4>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
1384
+ &lt;AdXML&gt;
1385
+ &lt;Request type=&quot;Campaign&quot;&gt;
1386
+ &lt;Campaign action=&quot;add&quot;&gt;
1387
+ &lt;Overview&gt;
1388
+ &lt;Id&gt;random_id_lolwut_wtf&lt;/Id&gt;
1389
+ &lt;AdvertiserId&gt;bobo&lt;/AdvertiserId&gt;
1390
+ &lt;Name&gt;LOLWUT&lt;/Name&gt;
1391
+ &lt;AgencyId&gt;unknown_agency&lt;/AgencyId&gt;
1392
+ &lt;Description&gt;&lt;/Description&gt;
1393
+ &lt;CampaignManager&gt;lol&lt;/CampaignManager&gt;
1394
+ &lt;ProductId&gt;default-product&lt;/ProductId&gt;
1395
+ &lt;InternalQuickReport&gt;&lt;/InternalQuickReport&gt;
1396
+ &lt;ExternalQuickReport&gt;&lt;/ExternalQuickReport&gt;
1397
+ &lt;/Overview&gt;
1398
+ &lt;Schedule&gt;
1399
+ &lt;Impressions&gt;999&lt;/Impressions&gt;
1400
+ &lt;Clicks&gt;0&lt;/Clicks&gt;
1401
+ &lt;Uniques&gt;0&lt;/Uniques&gt;
1402
+ &lt;Weight&gt;10&lt;/Weight&gt;
1403
+ &lt;PriorityLevel&gt;1&lt;/PriorityLevel&gt;
1404
+ &lt;Completion&gt;E&lt;/Completion&gt;
1405
+ &lt;StartDate&gt;2005-12-01&lt;/StartDate&gt;
1406
+ &lt;EndDate&gt;2040-12-01&lt;/EndDate&gt;
1407
+ &lt;Reach&gt;O&lt;/Reach&gt;
1408
+ &lt;DailyImp&gt;99&lt;/DailyImp&gt;
1409
+ &lt;DailyClicks&gt;9&lt;/DailyClicks&gt;
1410
+ &lt;DailyUniq&gt;1&lt;/DailyUniq&gt;
1411
+ &lt;SmoothOrAsap&gt;S&lt;/SmoothOrAsap&gt;
1412
+ &lt;ImpOverrun&gt;2&lt;/ImpOverrun&gt;
1413
+ &lt;CompanionPositions&gt;
1414
+ &lt;CompanionPosition&gt;B/T&lt;/CompanionPosition&gt;
1415
+ &lt;CompanionPosition&gt;BL/TL&lt;/CompanionPosition&gt;
1416
+ &lt;/CompanionPositions&gt;
1417
+ &lt;StrictCompanions&gt;Y&lt;/StrictCompanions&gt;
1418
+ &lt;PrimaryFrequency&gt;
1419
+ &lt;ImpPerVisitor&gt;4&lt;/ImpPerVisitor&gt;
1420
+ &lt;ClickPerVisitor&gt;0&lt;/ClickPerVisitor&gt;
1421
+ &lt;FreqScope&gt;4&lt;/FreqScope&gt;
1422
+ &lt;/PrimaryFrequency&gt;
1423
+ &lt;SecondaryFrequency&gt;
1424
+ &lt;ImpPerVisitor&gt;4&lt;/ImpPerVisitor&gt;
1425
+ &lt;FreqScope&gt;4&lt;/FreqScope&gt;
1426
+ &lt;/SecondaryFrequency&gt;
1427
+ &lt;HourOfDay&gt;
1428
+ &lt;Hour&gt;00&lt;/Hour&gt;
1429
+ &lt;Hour&gt;01&lt;/Hour&gt;
1430
+ &lt;Hour&gt;23&lt;/Hour&gt;
1431
+ &lt;/HourOfDay&gt;
1432
+ &lt;DayOfWeek&gt;
1433
+ &lt;Day&gt;2&lt;/Day&gt;
1434
+ &lt;Day&gt;3&lt;/Day&gt;
1435
+ &lt;Day&gt;4&lt;/Day&gt;
1436
+ &lt;Day&gt;5&lt;/Day&gt;
1437
+ &lt;/DayOfWeek&gt;
1438
+ &lt;UserTimeZone&gt;Y&lt;/UserTimeZone&gt;
1439
+ &lt;Sections&gt;
1440
+ &lt;SectionId&gt;SectionABC&lt;/SectionId&gt;
1441
+ &lt;SectionId&gt;SectionDEF&lt;/SectionId&gt;
1442
+ &lt;/Sections&gt;
1443
+ &lt;/Schedule&gt;
1444
+ &lt;/Campaign&gt;
1445
+ &lt;/Request&gt;
1446
+ &lt;/AdXML&gt;
1447
+ </String_4></n1:OasXmlRequest></env:Body></env:Envelope>
1448
+ headers:
1449
+ content-type:
1450
+ - text/xml;charset=UTF-8
1451
+ soapaction:
1452
+ - "\"OasXmlRequest\""
1453
+ response: !ruby/struct:VCR::Response
1454
+ status: !ruby/struct:VCR::ResponseStatus
1455
+ code: 200
1456
+ message: OK
1457
+ headers:
1458
+ x-powered-by:
1459
+ - Servlet 2.5; JBoss-5.0/JBossWeb-2.1
1460
+ p3p:
1461
+ - CP="NON NID PSAa PSDa OUR IND UNI COM NAV STA",policyref="/w3c/p3p.xml"
1462
+ content-type:
1463
+ - text/xml;charset=UTF-8
1464
+ via:
1465
+ - 1.1 training7.247realmedia.com
1466
+ server:
1467
+ - Apache-Coyote/1.1
1468
+ date:
1469
+ - Thu, 26 May 2011 16:44:05 GMT
1470
+ transfer-encoding:
1471
+ - chunked
1472
+ body: |-
1473
+ <?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><ns1:OasXmlRequestResponse xmlns:ns1="http://api.oas.tfsm.com/"><result>&lt;?xml version='1.0'?>
1474
+ &lt;AdXML>
1475
+
1476
+ &lt;Response>
1477
+ &lt;Campaign>
1478
+ &lt;Exception errorCode='590'>Primary and Secondary Frequency Scope must not be equivalent.&lt;/Exception>
1479
+ &lt;/Campaign>
1480
+ &lt;/Response>
1481
+ &lt;/AdXML></result></ns1:OasXmlRequestResponse></soapenv:Body></soapenv:Envelope>
1482
+ http_version: "1.1"
1483
+ - !ruby/struct:VCR::HTTPInteraction
1484
+ request: !ruby/struct:VCR::Request
1485
+ method: :post
1486
+ uri: https://training7.247realmedia.com:443/oasapi/OaxApi
1487
+ body: |-
1488
+ <?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:n1="http://api.oas.tfsm.com/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Body><n1:OasXmlRequest xmlns:n1="http://api.oas.tfsm.com/"><String_1>Abril</String_1><String_2>dev_abril</String_2><String_3>d3v@p1SgpD</String_3><String_4>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
1489
+ &lt;AdXML&gt;
1490
+ &lt;Request type=&quot;Campaign&quot;&gt;
1491
+ &lt;Campaign action=&quot;add&quot;&gt;
1492
+ &lt;Overview&gt;
1493
+ &lt;Id&gt;random_id_lolwut_wtf&lt;/Id&gt;
1494
+ &lt;AdvertiserId&gt;bobo&lt;/AdvertiserId&gt;
1495
+ &lt;Name&gt;LOLWUT&lt;/Name&gt;
1496
+ &lt;AgencyId&gt;unknown_agency&lt;/AgencyId&gt;
1497
+ &lt;Description&gt;&lt;/Description&gt;
1498
+ &lt;CampaignManager&gt;lol&lt;/CampaignManager&gt;
1499
+ &lt;ProductId&gt;default-product&lt;/ProductId&gt;
1500
+ &lt;InternalQuickReport&gt;&lt;/InternalQuickReport&gt;
1501
+ &lt;ExternalQuickReport&gt;&lt;/ExternalQuickReport&gt;
1502
+ &lt;/Overview&gt;
1503
+ &lt;Schedule&gt;
1504
+ &lt;Impressions&gt;999&lt;/Impressions&gt;
1505
+ &lt;Clicks&gt;0&lt;/Clicks&gt;
1506
+ &lt;Uniques&gt;0&lt;/Uniques&gt;
1507
+ &lt;Weight&gt;10&lt;/Weight&gt;
1508
+ &lt;PriorityLevel&gt;1&lt;/PriorityLevel&gt;
1509
+ &lt;Completion&gt;E&lt;/Completion&gt;
1510
+ &lt;StartDate&gt;2005-12-01&lt;/StartDate&gt;
1511
+ &lt;EndDate&gt;2040-12-01&lt;/EndDate&gt;
1512
+ &lt;Reach&gt;O&lt;/Reach&gt;
1513
+ &lt;DailyImp&gt;99&lt;/DailyImp&gt;
1514
+ &lt;DailyClicks&gt;9&lt;/DailyClicks&gt;
1515
+ &lt;DailyUniq&gt;1&lt;/DailyUniq&gt;
1516
+ &lt;SmoothOrAsap&gt;S&lt;/SmoothOrAsap&gt;
1517
+ &lt;ImpOverrun&gt;2&lt;/ImpOverrun&gt;
1518
+ &lt;CompanionPositions&gt;
1519
+ &lt;CompanionPosition&gt;B/T&lt;/CompanionPosition&gt;
1520
+ &lt;CompanionPosition&gt;BL/TL&lt;/CompanionPosition&gt;
1521
+ &lt;/CompanionPositions&gt;
1522
+ &lt;StrictCompanions&gt;Y&lt;/StrictCompanions&gt;
1523
+ &lt;HourOfDay&gt;
1524
+ &lt;Hour&gt;00&lt;/Hour&gt;
1525
+ &lt;Hour&gt;01&lt;/Hour&gt;
1526
+ &lt;Hour&gt;23&lt;/Hour&gt;
1527
+ &lt;/HourOfDay&gt;
1528
+ &lt;DayOfWeek&gt;
1529
+ &lt;Day&gt;2&lt;/Day&gt;
1530
+ &lt;Day&gt;3&lt;/Day&gt;
1531
+ &lt;Day&gt;4&lt;/Day&gt;
1532
+ &lt;Day&gt;5&lt;/Day&gt;
1533
+ &lt;/DayOfWeek&gt;
1534
+ &lt;UserTimeZone&gt;Y&lt;/UserTimeZone&gt;
1535
+ &lt;Sections&gt;
1536
+ &lt;SectionId&gt;SectionABC&lt;/SectionId&gt;
1537
+ &lt;SectionId&gt;SectionDEF&lt;/SectionId&gt;
1538
+ &lt;/Sections&gt;
1539
+ &lt;/Schedule&gt;
1540
+ &lt;/Campaign&gt;
1541
+ &lt;/Request&gt;
1542
+ &lt;/AdXML&gt;
1543
+ </String_4></n1:OasXmlRequest></env:Body></env:Envelope>
1544
+ headers:
1545
+ soapaction:
1546
+ - "\"OasXmlRequest\""
1547
+ content-type:
1548
+ - text/xml;charset=UTF-8
1549
+ response: !ruby/struct:VCR::Response
1550
+ status: !ruby/struct:VCR::ResponseStatus
1551
+ code: 200
1552
+ message: OK
1553
+ headers:
1554
+ x-powered-by:
1555
+ - Servlet 2.5; JBoss-5.0/JBossWeb-2.1
1556
+ p3p:
1557
+ - CP="NON NID PSAa PSDa OUR IND UNI COM NAV STA",policyref="/w3c/p3p.xml"
1558
+ via:
1559
+ - 1.1 training7.247realmedia.com
1560
+ content-type:
1561
+ - text/xml;charset=UTF-8
1562
+ date:
1563
+ - Thu, 26 May 2011 16:44:26 GMT
1564
+ server:
1565
+ - Apache-Coyote/1.1
1566
+ transfer-encoding:
1567
+ - chunked
1568
+ body: |-
1569
+ <?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><ns1:OasXmlRequestResponse xmlns:ns1="http://api.oas.tfsm.com/"><result>&lt;?xml version='1.0'?>
1570
+ &lt;AdXML>
1571
+
1572
+ &lt;Response>
1573
+ &lt;Campaign>
1574
+ &lt;Exception errorCode='512'>Campaign ID already exists in Open AdStream.&lt;/Exception>
1575
+ &lt;/Campaign>
1576
+ &lt;/Response>
1577
+ &lt;/AdXML></result></ns1:OasXmlRequestResponse></soapenv:Body></soapenv:Envelope>
1578
+ http_version: "1.1"
1579
+ - !ruby/struct:VCR::HTTPInteraction
1580
+ request: !ruby/struct:VCR::Request
1581
+ method: :post
1582
+ uri: https://training7.247realmedia.com:443/oasapi/OaxApi
1583
+ body: |-
1584
+ <?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:n1="http://api.oas.tfsm.com/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Body><n1:OasXmlRequest xmlns:n1="http://api.oas.tfsm.com/"><String_1>Abril</String_1><String_2>dev_abril</String_2><String_3>d3v@p1SgpD</String_3><String_4>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
1585
+ &lt;AdXML&gt;
1586
+ &lt;Request type=&quot;Campaign&quot;&gt;
1587
+ &lt;Campaign action=&quot;add&quot;&gt;
1588
+ &lt;Overview&gt;
1589
+ &lt;Id&gt;random_id_lolwut_wtf_shit&lt;/Id&gt;
1590
+ &lt;AdvertiserId&gt;bobo&lt;/AdvertiserId&gt;
1591
+ &lt;Name&gt;LOLWUT&lt;/Name&gt;
1592
+ &lt;AgencyId&gt;unknown_agency&lt;/AgencyId&gt;
1593
+ &lt;Description&gt;&lt;/Description&gt;
1594
+ &lt;CampaignManager&gt;lol&lt;/CampaignManager&gt;
1595
+ &lt;ProductId&gt;default-product&lt;/ProductId&gt;
1596
+ &lt;InternalQuickReport&gt;&lt;/InternalQuickReport&gt;
1597
+ &lt;ExternalQuickReport&gt;&lt;/ExternalQuickReport&gt;
1598
+ &lt;/Overview&gt;
1599
+ &lt;Schedule&gt;
1600
+ &lt;Impressions&gt;999&lt;/Impressions&gt;
1601
+ &lt;Clicks&gt;0&lt;/Clicks&gt;
1602
+ &lt;Uniques&gt;0&lt;/Uniques&gt;
1603
+ &lt;Weight&gt;10&lt;/Weight&gt;
1604
+ &lt;PriorityLevel&gt;1&lt;/PriorityLevel&gt;
1605
+ &lt;Completion&gt;E&lt;/Completion&gt;
1606
+ &lt;StartDate&gt;2005-12-01&lt;/StartDate&gt;
1607
+ &lt;EndDate&gt;2040-12-01&lt;/EndDate&gt;
1608
+ &lt;Reach&gt;O&lt;/Reach&gt;
1609
+ &lt;DailyImp&gt;99&lt;/DailyImp&gt;
1610
+ &lt;DailyClicks&gt;9&lt;/DailyClicks&gt;
1611
+ &lt;DailyUniq&gt;1&lt;/DailyUniq&gt;
1612
+ &lt;SmoothOrAsap&gt;S&lt;/SmoothOrAsap&gt;
1613
+ &lt;ImpOverrun&gt;2&lt;/ImpOverrun&gt;
1614
+ &lt;CompanionPositions&gt;
1615
+ &lt;CompanionPosition&gt;B/T&lt;/CompanionPosition&gt;
1616
+ &lt;CompanionPosition&gt;BL/TL&lt;/CompanionPosition&gt;
1617
+ &lt;/CompanionPositions&gt;
1618
+ &lt;StrictCompanions&gt;Y&lt;/StrictCompanions&gt;
1619
+ &lt;HourOfDay&gt;
1620
+ &lt;Hour&gt;00&lt;/Hour&gt;
1621
+ &lt;Hour&gt;01&lt;/Hour&gt;
1622
+ &lt;Hour&gt;23&lt;/Hour&gt;
1623
+ &lt;/HourOfDay&gt;
1624
+ &lt;DayOfWeek&gt;
1625
+ &lt;Day&gt;2&lt;/Day&gt;
1626
+ &lt;Day&gt;3&lt;/Day&gt;
1627
+ &lt;Day&gt;4&lt;/Day&gt;
1628
+ &lt;Day&gt;5&lt;/Day&gt;
1629
+ &lt;/DayOfWeek&gt;
1630
+ &lt;UserTimeZone&gt;Y&lt;/UserTimeZone&gt;
1631
+ &lt;Sections&gt;
1632
+ &lt;SectionId&gt;SectionABC&lt;/SectionId&gt;
1633
+ &lt;SectionId&gt;SectionDEF&lt;/SectionId&gt;
1634
+ &lt;/Sections&gt;
1635
+ &lt;/Schedule&gt;
1636
+ &lt;/Campaign&gt;
1637
+ &lt;/Request&gt;
1638
+ &lt;/AdXML&gt;
1639
+ </String_4></n1:OasXmlRequest></env:Body></env:Envelope>
1640
+ headers:
1641
+ content-type:
1642
+ - text/xml;charset=UTF-8
1643
+ soapaction:
1644
+ - "\"OasXmlRequest\""
1645
+ response: !ruby/struct:VCR::Response
1646
+ status: !ruby/struct:VCR::ResponseStatus
1647
+ code: 200
1648
+ message: OK
1649
+ headers:
1650
+ x-powered-by:
1651
+ - Servlet 2.5; JBoss-5.0/JBossWeb-2.1
1652
+ p3p:
1653
+ - CP="NON NID PSAa PSDa OUR IND UNI COM NAV STA",policyref="/w3c/p3p.xml"
1654
+ content-type:
1655
+ - text/xml;charset=UTF-8
1656
+ via:
1657
+ - 1.1 training7.247realmedia.com
1658
+ server:
1659
+ - Apache-Coyote/1.1
1660
+ date:
1661
+ - Thu, 26 May 2011 16:44:43 GMT
1662
+ transfer-encoding:
1663
+ - chunked
1664
+ body: |-
1665
+ <?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><ns1:OasXmlRequestResponse xmlns:ns1="http://api.oas.tfsm.com/"><result>&lt;?xml version='1.0'?>
1666
+ &lt;AdXML>
1667
+
1668
+ &lt;Response>
1669
+ &lt;Campaign>Successfully added.&lt;/Campaign>
1670
+ &lt;/Response>
1671
+ &lt;/AdXML></result></ns1:OasXmlRequestResponse></soapenv:Body></soapenv:Envelope>
1672
+ http_version: "1.1"