oass 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -18,40 +18,40 @@ module Oass
18
18
  xml.AdvertiserId attributes[:advertiser_id]
19
19
  xml.Name attributes[:name]
20
20
  xml.AgencyId attributes[:agency_id]
21
- xml.Description attributes[:description]
22
- xml.CampaignManager attributes[:campaign_manager]
21
+ xml.Description attributes[:description] if attributes[:description]
22
+ xml.CampaignManager attributes[:campaign_manager] if attributes[:campaign_manager]
23
23
  xml.ProductId attributes[:product_id]
24
24
  xml.ExternalUsers do
25
25
  attributes[:external_users].each do |user_id|
26
26
  xml.UserId user_id
27
27
  end
28
28
  end if attributes[:external_users]
29
- xml.InternalQuickReport attributes[:internal_quick_report]
30
- xml.ExternalQuickReport attributes[:external_quick_report]
29
+ xml.InternalQuickReport attributes[:internal_quick_report] if attributes[:internal_quick_report]
30
+ xml.ExternalQuickReport attributes[:external_quick_report] if attributes[:external_quick_report]
31
31
  end
32
32
 
33
33
  if schedule = attributes[:schedule]
34
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]
35
+ xml.Impressions schedule[:impressions] if schedule[:impressions]
36
+ xml.Clicks schedule[:clicks] if schedule[:clicks]
37
+ xml.Uniques schedule[:uniques] if schedule[:uniques]
38
+ xml.Weight schedule[:weight] if schedule[:weight]
39
+ xml.PriorityLevel schedule[:priority_level] if schedule[:priority_level]
40
+ xml.Completion schedule[:completion] if schedule[:completion]
41
+ xml.StartDate schedule[:start_date] if schedule[:start_date]
42
+ xml.EndDate schedule[:end_date] if schedule[:end_date]
43
+ xml.Reach schedule[:reach] if schedule[:reach]
44
+ xml.DailyImp schedule[:daily_impressions] if schedule[:daily_impressions]
45
+ xml.DailyClicks schedule[:daily_clicks] if schedule[:daily_clicks]
46
+ xml.DailyUniq schedule[:daily_uniq] if schedule[:daily_uniq]
47
+ xml.SmoothOrAsap schedule[:smooth_or_asap] if schedule[:smooth_or_asap]
48
+ xml.ImpOverrun schedule[:impression_overrun] if schedule[:impression_overrun]
49
49
  xml.CompanionPositions do
50
50
  schedule[:companion_positions].each do |position|
51
51
  xml.CompanionPosition position
52
52
  end
53
53
  end if schedule[:companion_positions]
54
- xml.StrictCompanions schedule[:strict_companions]
54
+ xml.StrictCompanions schedule[:strict_companions] if schedule[:strict_companions]
55
55
 
56
56
  # TODO check the primary and secondary frequency errors
57
57
  if primary_frequency = schedule[:primary_frequency]
@@ -81,7 +81,7 @@ module Oass
81
81
  end
82
82
  end if schedule[:days_of_week]
83
83
 
84
- xml.UserTimeZone schedule[:user_time_zone]
84
+ xml.UserTimeZone schedule[:user_time_zone] if schedule[:user_time_zone]
85
85
 
86
86
  xml.Sections do
87
87
  schedule[:sections].each do |section|
@@ -1,3 +1,3 @@
1
1
  module Oass
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
@@ -1,10 +1,10 @@
1
- ---
2
- - !ruby/struct:VCR::HTTPInteraction
3
- request: !ruby/struct:VCR::Request
1
+ ---
2
+ - !ruby/struct:VCR::HTTPInteraction
3
+ request: !ruby/struct:VCR::Request
4
4
  method: :post
5
5
  uri: https://training7.247realmedia.com:443/oasapi/OaxApi
6
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;
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>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;
8
8
  &lt;AdXML&gt;
9
9
  &lt;Request type=&quot;Campaign&quot;&gt;
10
10
  &lt;Campaign action=&quot;add&quot;&gt;
@@ -23,34 +23,89 @@
23
23
  &lt;/Request&gt;
24
24
  &lt;/AdXML&gt;
25
25
  </String_4></n1:OasXmlRequest></env:Body></env:Envelope>
26
- headers:
27
- content-type:
26
+ headers:
27
+ soapaction:
28
+ - "\"OasXmlRequest\""
29
+ content-type:
30
+ - text/xml;charset=UTF-8
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
+ via:
41
+ - 1.1 training7.247realmedia.com
42
+ content-type:
28
43
  - text/xml;charset=UTF-8
29
- soapaction:
44
+ date:
45
+ - Thu, 26 May 2011 01:29:55 GMT
46
+ server:
47
+ - Apache-Coyote/1.1
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"
61
+ - !ruby/struct:VCR::HTTPInteraction
62
+ request: !ruby/struct:VCR::Request
63
+ method: :post
64
+ uri: https://training7.247realmedia.com:443/oasapi/OaxApi
65
+ body: |-
66
+ <?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;
67
+ &lt;AdXML&gt;
68
+ &lt;Request type=&quot;Campaign&quot;&gt;
69
+ &lt;Campaign action=&quot;add&quot;&gt;
70
+ &lt;Overview&gt;
71
+ &lt;Id&gt;&lt;/Id&gt;
72
+ &lt;AdvertiserId&gt;&lt;/AdvertiserId&gt;
73
+ &lt;Name&gt;&lt;/Name&gt;
74
+ &lt;AgencyId&gt;&lt;/AgencyId&gt;
75
+ &lt;ProductId&gt;&lt;/ProductId&gt;
76
+ &lt;/Overview&gt;
77
+ &lt;/Campaign&gt;
78
+ &lt;/Request&gt;
79
+ &lt;/AdXML&gt;
80
+ </String_4></n1:OasXmlRequest></env:Body></env:Envelope>
81
+ headers:
82
+ content-type:
83
+ - text/xml;charset=UTF-8
84
+ soapaction:
30
85
  - "\"OasXmlRequest\""
31
- response: !ruby/struct:VCR::Response
32
- status: !ruby/struct:VCR::ResponseStatus
86
+ response: !ruby/struct:VCR::Response
87
+ status: !ruby/struct:VCR::ResponseStatus
33
88
  code: 200
34
89
  message: OK
35
- headers:
36
- x-powered-by:
90
+ headers:
91
+ x-powered-by:
37
92
  - Servlet 2.5; JBoss-5.0/JBossWeb-2.1
38
- p3p:
93
+ p3p:
39
94
  - CP="NON NID PSAa PSDa OUR IND UNI COM NAV STA",policyref="/w3c/p3p.xml"
40
- content-type:
95
+ content-type:
41
96
  - text/xml;charset=UTF-8
42
- via:
97
+ via:
43
98
  - 1.1 training7.247realmedia.com
44
- server:
99
+ server:
45
100
  - Apache-Coyote/1.1
46
- date:
47
- - Thu, 26 May 2011 01:29:55 GMT
48
- transfer-encoding:
101
+ date:
102
+ - Fri, 27 May 2011 13:02:16 GMT
103
+ transfer-encoding:
49
104
  - chunked
50
105
  body: |-
51
106
  <?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
107
  &lt;AdXML>
53
-
108
+
54
109
  &lt;Response>
55
110
  &lt;Campaign>
56
111
  &lt;Exception errorCode='505'> is an invalid value for Id&lt;/Exception>
@@ -12,16 +12,16 @@
12
12
  headers:
13
13
  etag:
14
14
  - "\"44e617-674-48c8d0448cd40\""
15
- last-modified:
16
- - Thu, 29 Jul 2010 20:59:57 GMT
17
15
  p3p:
18
16
  - CP="NON NID PSAa PSDa OUR IND UNI COM NAV STA",policyref="/w3c/p3p.xml"
17
+ last-modified:
18
+ - Thu, 29 Jul 2010 20:59:57 GMT
19
19
  content-type:
20
20
  - text/xml
21
- date:
22
- - Thu, 26 May 2011 00:57:00 GMT
23
21
  server:
24
22
  - Apache/2.2.3 (Red Hat)
23
+ date:
24
+ - Thu, 26 May 2011 00:57:00 GMT
25
25
  content-length:
26
26
  - "1652"
27
27
  accept-ranges:
@@ -102,10 +102,10 @@
102
102
  &lt;/AdXML&gt;
103
103
  </String_4></n1:OasXmlRequest></env:Body></env:Envelope>
104
104
  headers:
105
- soapaction:
106
- - "\"OasXmlRequest\""
107
105
  content-type:
108
106
  - text/xml;charset=UTF-8
107
+ soapaction:
108
+ - "\"OasXmlRequest\""
109
109
  response: !ruby/struct:VCR::Response
110
110
  status: !ruby/struct:VCR::ResponseStatus
111
111
  code: 200
@@ -115,14 +115,14 @@
115
115
  - Servlet 2.5; JBoss-5.0/JBossWeb-2.1
116
116
  p3p:
117
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
118
  content-type:
121
119
  - text/xml;charset=UTF-8
122
- date:
123
- - Thu, 26 May 2011 00:57:02 GMT
120
+ via:
121
+ - 1.1 training7.247realmedia.com
124
122
  server:
125
123
  - Apache-Coyote/1.1
124
+ date:
125
+ - Thu, 26 May 2011 00:57:02 GMT
126
126
  transfer-encoding:
127
127
  - chunked
128
128
  body: |-
@@ -147,16 +147,16 @@
147
147
  headers:
148
148
  etag:
149
149
  - "\"44e617-674-48c8d0448cd40\""
150
- p3p:
151
- - CP="NON NID PSAa PSDa OUR IND UNI COM NAV STA",policyref="/w3c/p3p.xml"
152
150
  last-modified:
153
151
  - Thu, 29 Jul 2010 20:59:57 GMT
152
+ p3p:
153
+ - CP="NON NID PSAa PSDa OUR IND UNI COM NAV STA",policyref="/w3c/p3p.xml"
154
154
  content-type:
155
155
  - text/xml
156
- server:
157
- - Apache/2.2.3 (Red Hat)
158
156
  date:
159
157
  - Thu, 26 May 2011 00:57:45 GMT
158
+ server:
159
+ - Apache/2.2.3 (Red Hat)
160
160
  content-length:
161
161
  - "1652"
162
162
  accept-ranges:
@@ -283,6 +283,113 @@
283
283
  &lt;/Request&gt;
284
284
  &lt;/AdXML&gt;
285
285
  </String_4></n1:OasXmlRequest></env:Body></env:Envelope>
286
+ headers:
287
+ content-type:
288
+ - text/xml;charset=UTF-8
289
+ soapaction:
290
+ - "\"OasXmlRequest\""
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
+ content-type:
301
+ - text/xml;charset=UTF-8
302
+ via:
303
+ - 1.1 training7.247realmedia.com
304
+ server:
305
+ - Apache-Coyote/1.1
306
+ date:
307
+ - Thu, 26 May 2011 16:37:27 GMT
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>
286
393
  headers:
287
394
  soapaction:
288
395
  - "\"OasXmlRequest\""
@@ -302,7 +409,7 @@
302
409
  content-type:
303
410
  - text/xml;charset=UTF-8
304
411
  date:
305
- - Thu, 26 May 2011 16:37:27 GMT
412
+ - Thu, 26 May 2011 16:38:16 GMT
306
413
  server:
307
414
  - Apache-Coyote/1.1
308
415
  transfer-encoding:
@@ -362,12 +469,10 @@
362
469
  &lt;PrimaryFrequency&gt;
363
470
  &lt;ImpPerVisitor&gt;2&lt;/ImpPerVisitor&gt;
364
471
  &lt;FreqScore&gt;Y&lt;/FreqScore&gt;
365
- &lt;ClickPerVisitor&gt;0&lt;/ClickPerVisitor&gt;
366
472
  &lt;/PrimaryFrequency&gt;
367
473
  &lt;SecondaryFrequency&gt;
368
474
  &lt;ImpPerVisitor&gt;2&lt;/ImpPerVisitor&gt;
369
475
  &lt;FreqScore&gt;Y&lt;/FreqScore&gt;
370
- &lt;ClickPerVisitor&gt;0&lt;/ClickPerVisitor&gt;
371
476
  &lt;/SecondaryFrequency&gt;
372
477
  &lt;HourOfDay&gt;
373
478
  &lt;Hour&gt;00&lt;/Hour&gt;
@@ -411,7 +516,7 @@
411
516
  server:
412
517
  - Apache-Coyote/1.1
413
518
  date:
414
- - Thu, 26 May 2011 16:38:16 GMT
519
+ - Thu, 26 May 2011 16:38:44 GMT
415
520
  transfer-encoding:
416
521
  - chunked
417
522
  body: |-
@@ -420,7 +525,7 @@
420
525
  &lt;Response>
421
526
  &lt;Exception errorCode='370'>&lt;![CDATA[
422
527
  error in API request
423
- line: 45
528
+ line: 43
424
529
  message: The content of element type "SecondaryFrequency" must match "(ImpPerVisitor?,FreqScope?)".
425
530
  type: Parse Exception]]&gt;&lt;/Exception>
426
531
  &lt;/Response>
@@ -468,11 +573,13 @@
468
573
  &lt;StrictCompanions&gt;Y&lt;/StrictCompanions&gt;
469
574
  &lt;PrimaryFrequency&gt;
470
575
  &lt;ImpPerVisitor&gt;2&lt;/ImpPerVisitor&gt;
471
- &lt;FreqScore&gt;Y&lt;/FreqScore&gt;
576
+ &lt;ClickPerVisitor&gt;0&lt;/ClickPerVisitor&gt;
577
+ &lt;FreqScope&gt;Y&lt;/FreqScope&gt;
472
578
  &lt;/PrimaryFrequency&gt;
473
579
  &lt;SecondaryFrequency&gt;
474
580
  &lt;ImpPerVisitor&gt;2&lt;/ImpPerVisitor&gt;
475
- &lt;FreqScore&gt;Y&lt;/FreqScore&gt;
581
+ &lt;ClickPerVisitor&gt;0&lt;/ClickPerVisitor&gt;
582
+ &lt;FreqScope&gt;Y&lt;/FreqScope&gt;
476
583
  &lt;/SecondaryFrequency&gt;
477
584
  &lt;HourOfDay&gt;
478
585
  &lt;Hour&gt;00&lt;/Hour&gt;
@@ -514,7 +621,7 @@
514
621
  content-type:
515
622
  - text/xml;charset=UTF-8
516
623
  date:
517
- - Thu, 26 May 2011 16:38:44 GMT
624
+ - Thu, 26 May 2011 16:39:12 GMT
518
625
  server:
519
626
  - Apache-Coyote/1.1
520
627
  transfer-encoding:
@@ -525,7 +632,7 @@
525
632
  &lt;Response>
526
633
  &lt;Exception errorCode='370'>&lt;![CDATA[
527
634
  error in API request
528
- line: 43
635
+ line: 45
529
636
  message: The content of element type "SecondaryFrequency" must match "(ImpPerVisitor?,FreqScope?)".
530
637
  type: Parse Exception]]&gt;&lt;/Exception>
531
638
  &lt;/Response>
@@ -573,12 +680,10 @@
573
680
  &lt;StrictCompanions&gt;Y&lt;/StrictCompanions&gt;
574
681
  &lt;PrimaryFrequency&gt;
575
682
  &lt;ImpPerVisitor&gt;2&lt;/ImpPerVisitor&gt;
576
- &lt;ClickPerVisitor&gt;0&lt;/ClickPerVisitor&gt;
577
683
  &lt;FreqScope&gt;Y&lt;/FreqScope&gt;
578
684
  &lt;/PrimaryFrequency&gt;
579
685
  &lt;SecondaryFrequency&gt;
580
686
  &lt;ImpPerVisitor&gt;2&lt;/ImpPerVisitor&gt;
581
- &lt;ClickPerVisitor&gt;0&lt;/ClickPerVisitor&gt;
582
687
  &lt;FreqScope&gt;Y&lt;/FreqScope&gt;
583
688
  &lt;/SecondaryFrequency&gt;
584
689
  &lt;HourOfDay&gt;
@@ -623,18 +728,17 @@
623
728
  server:
624
729
  - Apache-Coyote/1.1
625
730
  date:
626
- - Thu, 26 May 2011 16:39:12 GMT
731
+ - Thu, 26 May 2011 16:39:57 GMT
627
732
  transfer-encoding:
628
733
  - chunked
629
734
  body: |-
630
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'?>
631
736
  &lt;AdXML>
737
+
632
738
  &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>
739
+ &lt;Campaign>
740
+ &lt;Exception errorCode='502'>ClickPerVisitor must not be blank.&lt;/Exception>
741
+ &lt;/Campaign>
638
742
  &lt;/Response>
639
743
  &lt;/AdXML></result></ns1:OasXmlRequestResponse></soapenv:Body></soapenv:Envelope>
640
744
  http_version: "1.1"
@@ -681,10 +785,12 @@
681
785
  &lt;PrimaryFrequency&gt;
682
786
  &lt;ImpPerVisitor&gt;2&lt;/ImpPerVisitor&gt;
683
787
  &lt;FreqScope&gt;Y&lt;/FreqScope&gt;
788
+ &lt;ClickPerVisitor&gt;0&lt;/ClickPerVisitor&gt;
684
789
  &lt;/PrimaryFrequency&gt;
685
790
  &lt;SecondaryFrequency&gt;
686
791
  &lt;ImpPerVisitor&gt;2&lt;/ImpPerVisitor&gt;
687
792
  &lt;FreqScope&gt;Y&lt;/FreqScope&gt;
793
+ &lt;ClickPerVisitor&gt;0&lt;/ClickPerVisitor&gt;
688
794
  &lt;/SecondaryFrequency&gt;
689
795
  &lt;HourOfDay&gt;
690
796
  &lt;Hour&gt;00&lt;/Hour&gt;
@@ -726,7 +832,7 @@
726
832
  content-type:
727
833
  - text/xml;charset=UTF-8
728
834
  date:
729
- - Thu, 26 May 2011 16:39:57 GMT
835
+ - Thu, 26 May 2011 16:40:25 GMT
730
836
  server:
731
837
  - Apache-Coyote/1.1
732
838
  transfer-encoding:
@@ -734,11 +840,12 @@
734
840
  body: |-
735
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'?>
736
842
  &lt;AdXML>
737
-
738
843
  &lt;Response>
739
- &lt;Campaign>
740
- &lt;Exception errorCode='502'>ClickPerVisitor must not be blank.&lt;/Exception>
741
- &lt;/Campaign>
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>
742
849
  &lt;/Response>
743
850
  &lt;/AdXML></result></ns1:OasXmlRequestResponse></soapenv:Body></soapenv:Envelope>
744
851
  http_version: "1.1"
@@ -790,7 +897,6 @@
790
897
  &lt;SecondaryFrequency&gt;
791
898
  &lt;ImpPerVisitor&gt;2&lt;/ImpPerVisitor&gt;
792
899
  &lt;FreqScope&gt;Y&lt;/FreqScope&gt;
793
- &lt;ClickPerVisitor&gt;0&lt;/ClickPerVisitor&gt;
794
900
  &lt;/SecondaryFrequency&gt;
795
901
  &lt;HourOfDay&gt;
796
902
  &lt;Hour&gt;00&lt;/Hour&gt;
@@ -834,7 +940,7 @@
834
940
  server:
835
941
  - Apache-Coyote/1.1
836
942
  date:
837
- - Thu, 26 May 2011 16:40:25 GMT
943
+ - Thu, 26 May 2011 16:40:40 GMT
838
944
  transfer-encoding:
839
945
  - chunked
840
946
  body: |-
@@ -843,8 +949,8 @@
843
949
  &lt;Response>
844
950
  &lt;Exception errorCode='370'>&lt;![CDATA[
845
951
  error in API request
846
- line: 45
847
- message: The content of element type "SecondaryFrequency" must match "(ImpPerVisitor?,FreqScope?)".
952
+ line: 40
953
+ message: The content of element type "PrimaryFrequency" must match "(ImpPerVisitor?,ClickPerVisitor?,FreqScope?)".
848
954
  type: Parse Exception]]&gt;&lt;/Exception>
849
955
  &lt;/Response>
850
956
  &lt;/AdXML></result></ns1:OasXmlRequestResponse></soapenv:Body></soapenv:Envelope>
@@ -891,8 +997,8 @@
891
997
  &lt;StrictCompanions&gt;Y&lt;/StrictCompanions&gt;
892
998
  &lt;PrimaryFrequency&gt;
893
999
  &lt;ImpPerVisitor&gt;2&lt;/ImpPerVisitor&gt;
894
- &lt;FreqScope&gt;Y&lt;/FreqScope&gt;
895
1000
  &lt;ClickPerVisitor&gt;0&lt;/ClickPerVisitor&gt;
1001
+ &lt;FreqScope&gt;Y&lt;/FreqScope&gt;
896
1002
  &lt;/PrimaryFrequency&gt;
897
1003
  &lt;SecondaryFrequency&gt;
898
1004
  &lt;ImpPerVisitor&gt;2&lt;/ImpPerVisitor&gt;
@@ -938,7 +1044,7 @@
938
1044
  content-type:
939
1045
  - text/xml;charset=UTF-8
940
1046
  date:
941
- - Thu, 26 May 2011 16:40:40 GMT
1047
+ - Thu, 26 May 2011 16:41:05 GMT
942
1048
  server:
943
1049
  - Apache-Coyote/1.1
944
1050
  transfer-encoding:
@@ -946,12 +1052,11 @@
946
1052
  body: |-
947
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'?>
948
1054
  &lt;AdXML>
1055
+
949
1056
  &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>
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>
955
1060
  &lt;/Response>
956
1061
  &lt;/AdXML></result></ns1:OasXmlRequestResponse></soapenv:Body></soapenv:Envelope>
957
1062
  http_version: "1.1"
@@ -998,11 +1103,11 @@
998
1103
  &lt;PrimaryFrequency&gt;
999
1104
  &lt;ImpPerVisitor&gt;2&lt;/ImpPerVisitor&gt;
1000
1105
  &lt;ClickPerVisitor&gt;0&lt;/ClickPerVisitor&gt;
1001
- &lt;FreqScope&gt;Y&lt;/FreqScope&gt;
1106
+ &lt;FreqScope&gt;1&lt;/FreqScope&gt;
1002
1107
  &lt;/PrimaryFrequency&gt;
1003
1108
  &lt;SecondaryFrequency&gt;
1004
1109
  &lt;ImpPerVisitor&gt;2&lt;/ImpPerVisitor&gt;
1005
- &lt;FreqScope&gt;Y&lt;/FreqScope&gt;
1110
+ &lt;FreqScope&gt;1&lt;/FreqScope&gt;
1006
1111
  &lt;/SecondaryFrequency&gt;
1007
1112
  &lt;HourOfDay&gt;
1008
1113
  &lt;Hour&gt;00&lt;/Hour&gt;
@@ -1046,7 +1151,7 @@
1046
1151
  server:
1047
1152
  - Apache-Coyote/1.1
1048
1153
  date:
1049
- - Thu, 26 May 2011 16:41:05 GMT
1154
+ - Thu, 26 May 2011 16:41:36 GMT
1050
1155
  transfer-encoding:
1051
1156
  - chunked
1052
1157
  body: |-
@@ -1055,7 +1160,7 @@
1055
1160
 
1056
1161
  &lt;Response>
1057
1162
  &lt;Campaign>
1058
- &lt;Exception errorCode='500'>Y is an invalid option for FreqScope (0,1,2,3,4,5,6)&lt;/Exception>
1163
+ &lt;Exception errorCode='590'>Primary and Secondary Frequency Scope must not be equivalent.&lt;/Exception>
1059
1164
  &lt;/Campaign>
1060
1165
  &lt;/Response>
1061
1166
  &lt;/AdXML></result></ns1:OasXmlRequestResponse></soapenv:Body></soapenv:Envelope>
@@ -1101,12 +1206,12 @@
1101
1206
  &lt;/CompanionPositions&gt;
1102
1207
  &lt;StrictCompanions&gt;Y&lt;/StrictCompanions&gt;
1103
1208
  &lt;PrimaryFrequency&gt;
1104
- &lt;ImpPerVisitor&gt;2&lt;/ImpPerVisitor&gt;
1209
+ &lt;ImpPerVisitor&gt;3&lt;/ImpPerVisitor&gt;
1105
1210
  &lt;ClickPerVisitor&gt;0&lt;/ClickPerVisitor&gt;
1106
1211
  &lt;FreqScope&gt;1&lt;/FreqScope&gt;
1107
1212
  &lt;/PrimaryFrequency&gt;
1108
1213
  &lt;SecondaryFrequency&gt;
1109
- &lt;ImpPerVisitor&gt;2&lt;/ImpPerVisitor&gt;
1214
+ &lt;ImpPerVisitor&gt;3&lt;/ImpPerVisitor&gt;
1110
1215
  &lt;FreqScope&gt;1&lt;/FreqScope&gt;
1111
1216
  &lt;/SecondaryFrequency&gt;
1112
1217
  &lt;HourOfDay&gt;
@@ -1149,7 +1254,7 @@
1149
1254
  content-type:
1150
1255
  - text/xml;charset=UTF-8
1151
1256
  date:
1152
- - Thu, 26 May 2011 16:41:36 GMT
1257
+ - Thu, 26 May 2011 16:42:34 GMT
1153
1258
  server:
1154
1259
  - Apache-Coyote/1.1
1155
1260
  transfer-encoding:
@@ -1208,11 +1313,11 @@
1208
1313
  &lt;PrimaryFrequency&gt;
1209
1314
  &lt;ImpPerVisitor&gt;3&lt;/ImpPerVisitor&gt;
1210
1315
  &lt;ClickPerVisitor&gt;0&lt;/ClickPerVisitor&gt;
1211
- &lt;FreqScope&gt;1&lt;/FreqScope&gt;
1316
+ &lt;FreqScope&gt;4&lt;/FreqScope&gt;
1212
1317
  &lt;/PrimaryFrequency&gt;
1213
1318
  &lt;SecondaryFrequency&gt;
1214
1319
  &lt;ImpPerVisitor&gt;3&lt;/ImpPerVisitor&gt;
1215
- &lt;FreqScope&gt;1&lt;/FreqScope&gt;
1320
+ &lt;FreqScope&gt;4&lt;/FreqScope&gt;
1216
1321
  &lt;/SecondaryFrequency&gt;
1217
1322
  &lt;HourOfDay&gt;
1218
1323
  &lt;Hour&gt;00&lt;/Hour&gt;
@@ -1256,7 +1361,7 @@
1256
1361
  server:
1257
1362
  - Apache-Coyote/1.1
1258
1363
  date:
1259
- - Thu, 26 May 2011 16:42:34 GMT
1364
+ - Thu, 26 May 2011 16:43:17 GMT
1260
1365
  transfer-encoding:
1261
1366
  - chunked
1262
1367
  body: |-
@@ -1311,12 +1416,12 @@
1311
1416
  &lt;/CompanionPositions&gt;
1312
1417
  &lt;StrictCompanions&gt;Y&lt;/StrictCompanions&gt;
1313
1418
  &lt;PrimaryFrequency&gt;
1314
- &lt;ImpPerVisitor&gt;3&lt;/ImpPerVisitor&gt;
1419
+ &lt;ImpPerVisitor&gt;4&lt;/ImpPerVisitor&gt;
1315
1420
  &lt;ClickPerVisitor&gt;0&lt;/ClickPerVisitor&gt;
1316
1421
  &lt;FreqScope&gt;4&lt;/FreqScope&gt;
1317
1422
  &lt;/PrimaryFrequency&gt;
1318
1423
  &lt;SecondaryFrequency&gt;
1319
- &lt;ImpPerVisitor&gt;3&lt;/ImpPerVisitor&gt;
1424
+ &lt;ImpPerVisitor&gt;4&lt;/ImpPerVisitor&gt;
1320
1425
  &lt;FreqScope&gt;4&lt;/FreqScope&gt;
1321
1426
  &lt;/SecondaryFrequency&gt;
1322
1427
  &lt;HourOfDay&gt;
@@ -1359,7 +1464,7 @@
1359
1464
  content-type:
1360
1465
  - text/xml;charset=UTF-8
1361
1466
  date:
1362
- - Thu, 26 May 2011 16:43:17 GMT
1467
+ - Thu, 26 May 2011 16:44:05 GMT
1363
1468
  server:
1364
1469
  - Apache-Coyote/1.1
1365
1470
  transfer-encoding:
@@ -1415,15 +1520,6 @@
1415
1520
  &lt;CompanionPosition&gt;BL/TL&lt;/CompanionPosition&gt;
1416
1521
  &lt;/CompanionPositions&gt;
1417
1522
  &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
1523
  &lt;HourOfDay&gt;
1428
1524
  &lt;Hour&gt;00&lt;/Hour&gt;
1429
1525
  &lt;Hour&gt;01&lt;/Hour&gt;
@@ -1466,7 +1562,7 @@
1466
1562
  server:
1467
1563
  - Apache-Coyote/1.1
1468
1564
  date:
1469
- - Thu, 26 May 2011 16:44:05 GMT
1565
+ - Thu, 26 May 2011 16:44:26 GMT
1470
1566
  transfer-encoding:
1471
1567
  - chunked
1472
1568
  body: |-
@@ -1475,7 +1571,7 @@
1475
1571
 
1476
1572
  &lt;Response>
1477
1573
  &lt;Campaign>
1478
- &lt;Exception errorCode='590'>Primary and Secondary Frequency Scope must not be equivalent.&lt;/Exception>
1574
+ &lt;Exception errorCode='512'>Campaign ID already exists in Open AdStream.&lt;/Exception>
1479
1575
  &lt;/Campaign>
1480
1576
  &lt;/Response>
1481
1577
  &lt;/AdXML></result></ns1:OasXmlRequestResponse></soapenv:Body></soapenv:Envelope>
@@ -1490,7 +1586,7 @@
1490
1586
  &lt;Request type=&quot;Campaign&quot;&gt;
1491
1587
  &lt;Campaign action=&quot;add&quot;&gt;
1492
1588
  &lt;Overview&gt;
1493
- &lt;Id&gt;random_id_lolwut_wtf&lt;/Id&gt;
1589
+ &lt;Id&gt;random_id_lolwut_wtf_shit&lt;/Id&gt;
1494
1590
  &lt;AdvertiserId&gt;bobo&lt;/AdvertiserId&gt;
1495
1591
  &lt;Name&gt;LOLWUT&lt;/Name&gt;
1496
1592
  &lt;AgencyId&gt;unknown_agency&lt;/AgencyId&gt;
@@ -1560,7 +1656,7 @@
1560
1656
  content-type:
1561
1657
  - text/xml;charset=UTF-8
1562
1658
  date:
1563
- - Thu, 26 May 2011 16:44:26 GMT
1659
+ - Thu, 26 May 2011 16:44:43 GMT
1564
1660
  server:
1565
1661
  - Apache-Coyote/1.1
1566
1662
  transfer-encoding:
@@ -1570,9 +1666,7 @@
1570
1666
  &lt;AdXML>
1571
1667
 
1572
1668
  &lt;Response>
1573
- &lt;Campaign>
1574
- &lt;Exception errorCode='512'>Campaign ID already exists in Open AdStream.&lt;/Exception>
1575
- &lt;/Campaign>
1669
+ &lt;Campaign>Successfully added.&lt;/Campaign>
1576
1670
  &lt;/Response>
1577
1671
  &lt;/AdXML></result></ns1:OasXmlRequestResponse></soapenv:Body></soapenv:Envelope>
1578
1672
  http_version: "1.1"
@@ -1590,11 +1684,8 @@
1590
1684
  &lt;AdvertiserId&gt;bobo&lt;/AdvertiserId&gt;
1591
1685
  &lt;Name&gt;LOLWUT&lt;/Name&gt;
1592
1686
  &lt;AgencyId&gt;unknown_agency&lt;/AgencyId&gt;
1593
- &lt;Description&gt;&lt;/Description&gt;
1594
1687
  &lt;CampaignManager&gt;lol&lt;/CampaignManager&gt;
1595
1688
  &lt;ProductId&gt;default-product&lt;/ProductId&gt;
1596
- &lt;InternalQuickReport&gt;&lt;/InternalQuickReport&gt;
1597
- &lt;ExternalQuickReport&gt;&lt;/ExternalQuickReport&gt;
1598
1689
  &lt;/Overview&gt;
1599
1690
  &lt;Schedule&gt;
1600
1691
  &lt;Impressions&gt;999&lt;/Impressions&gt;
@@ -1658,7 +1749,682 @@
1658
1749
  server:
1659
1750
  - Apache-Coyote/1.1
1660
1751
  date:
1661
- - Thu, 26 May 2011 16:44:43 GMT
1752
+ - Fri, 27 May 2011 13:02:15 GMT
1753
+ transfer-encoding:
1754
+ - chunked
1755
+ body: |-
1756
+ <?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'?>
1757
+ &lt;AdXML>
1758
+
1759
+ &lt;Response>
1760
+ &lt;Campaign>
1761
+ &lt;Exception errorCode='512'>Campaign ID already exists in Open AdStream.&lt;/Exception>
1762
+ &lt;/Campaign>
1763
+ &lt;/Response>
1764
+ &lt;/AdXML></result></ns1:OasXmlRequestResponse></soapenv:Body></soapenv:Envelope>
1765
+ http_version: "1.1"
1766
+ - !ruby/struct:VCR::HTTPInteraction
1767
+ request: !ruby/struct:VCR::Request
1768
+ method: :post
1769
+ uri: https://training7.247realmedia.com:443/oasapi/OaxApi
1770
+ body: |-
1771
+ <?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;
1772
+ &lt;AdXML&gt;
1773
+ &lt;Request type=&quot;Campaign&quot;&gt;
1774
+ &lt;Campaign action=&quot;add&quot;&gt;
1775
+ &lt;Overview&gt;
1776
+ &lt;Id&gt;zqjigkhvbwcstofmnupyexladr&lt;/Id&gt;
1777
+ &lt;AdvertiserId&gt;bobo&lt;/AdvertiserId&gt;
1778
+ &lt;Name&gt;LOLWUT&lt;/Name&gt;
1779
+ &lt;AgencyId&gt;unknown_agency&lt;/AgencyId&gt;
1780
+ &lt;ProductId&gt;default-product&lt;/ProductId&gt;
1781
+ &lt;/Overview&gt;
1782
+ &lt;Schedule&gt;
1783
+ &lt;Impressions&gt;999&lt;/Impressions&gt;
1784
+ &lt;Clicks&gt;0&lt;/Clicks&gt;
1785
+ &lt;/Schedule&gt;
1786
+ &lt;/Campaign&gt;
1787
+ &lt;/Request&gt;
1788
+ &lt;/AdXML&gt;
1789
+ </String_4></n1:OasXmlRequest></env:Body></env:Envelope>
1790
+ headers:
1791
+ soapaction:
1792
+ - "\"OasXmlRequest\""
1793
+ content-type:
1794
+ - text/xml;charset=UTF-8
1795
+ response: !ruby/struct:VCR::Response
1796
+ status: !ruby/struct:VCR::ResponseStatus
1797
+ code: 200
1798
+ message: OK
1799
+ headers:
1800
+ x-powered-by:
1801
+ - Servlet 2.5; JBoss-5.0/JBossWeb-2.1
1802
+ p3p:
1803
+ - CP="NON NID PSAa PSDa OUR IND UNI COM NAV STA",policyref="/w3c/p3p.xml"
1804
+ via:
1805
+ - 1.1 training7.247realmedia.com
1806
+ content-type:
1807
+ - text/xml;charset=UTF-8
1808
+ date:
1809
+ - Fri, 27 May 2011 13:11:40 GMT
1810
+ server:
1811
+ - Apache-Coyote/1.1
1812
+ transfer-encoding:
1813
+ - chunked
1814
+ body: |-
1815
+ <?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'?>
1816
+ &lt;AdXML>
1817
+
1818
+ &lt;Response>
1819
+ &lt;Campaign>
1820
+ &lt;Exception errorCode='502'>Completion must not be blank.&lt;/Exception>
1821
+ &lt;/Campaign>
1822
+ &lt;/Response>
1823
+ &lt;/AdXML></result></ns1:OasXmlRequestResponse></soapenv:Body></soapenv:Envelope>
1824
+ http_version: "1.1"
1825
+ - !ruby/struct:VCR::HTTPInteraction
1826
+ request: !ruby/struct:VCR::Request
1827
+ method: :post
1828
+ uri: https://training7.247realmedia.com:443/oasapi/OaxApi
1829
+ body: |-
1830
+ <?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;
1831
+ &lt;AdXML&gt;
1832
+ &lt;Request type=&quot;Campaign&quot;&gt;
1833
+ &lt;Campaign action=&quot;add&quot;&gt;
1834
+ &lt;Overview&gt;
1835
+ &lt;Id&gt;umrngvoxziqwkhdjetpclbfysa&lt;/Id&gt;
1836
+ &lt;AdvertiserId&gt;bobo&lt;/AdvertiserId&gt;
1837
+ &lt;Name&gt;LOLWUT&lt;/Name&gt;
1838
+ &lt;AgencyId&gt;unknown_agency&lt;/AgencyId&gt;
1839
+ &lt;ProductId&gt;default-product&lt;/ProductId&gt;
1840
+ &lt;/Overview&gt;
1841
+ &lt;Schedule&gt;
1842
+ &lt;Impressions&gt;999&lt;/Impressions&gt;
1843
+ &lt;Clicks&gt;0&lt;/Clicks&gt;
1844
+ &lt;Completion&gt;E&lt;/Completion&gt;
1845
+ &lt;/Schedule&gt;
1846
+ &lt;/Campaign&gt;
1847
+ &lt;/Request&gt;
1848
+ &lt;/AdXML&gt;
1849
+ </String_4></n1:OasXmlRequest></env:Body></env:Envelope>
1850
+ headers:
1851
+ content-type:
1852
+ - text/xml;charset=UTF-8
1853
+ soapaction:
1854
+ - "\"OasXmlRequest\""
1855
+ response: !ruby/struct:VCR::Response
1856
+ status: !ruby/struct:VCR::ResponseStatus
1857
+ code: 200
1858
+ message: OK
1859
+ headers:
1860
+ x-powered-by:
1861
+ - Servlet 2.5; JBoss-5.0/JBossWeb-2.1
1862
+ p3p:
1863
+ - CP="NON NID PSAa PSDa OUR IND UNI COM NAV STA",policyref="/w3c/p3p.xml"
1864
+ content-type:
1865
+ - text/xml;charset=UTF-8
1866
+ via:
1867
+ - 1.1 training7.247realmedia.com
1868
+ server:
1869
+ - Apache-Coyote/1.1
1870
+ date:
1871
+ - Fri, 27 May 2011 13:12:00 GMT
1872
+ transfer-encoding:
1873
+ - chunked
1874
+ body: |-
1875
+ <?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'?>
1876
+ &lt;AdXML>
1877
+
1878
+ &lt;Response>
1879
+ &lt;Campaign>
1880
+ &lt;Exception errorCode='502'>Reach must not be blank.&lt;/Exception>
1881
+ &lt;/Campaign>
1882
+ &lt;/Response>
1883
+ &lt;/AdXML></result></ns1:OasXmlRequestResponse></soapenv:Body></soapenv:Envelope>
1884
+ http_version: "1.1"
1885
+ - !ruby/struct:VCR::HTTPInteraction
1886
+ request: !ruby/struct:VCR::Request
1887
+ method: :post
1888
+ uri: https://training7.247realmedia.com:443/oasapi/OaxApi
1889
+ body: |-
1890
+ <?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;
1891
+ &lt;AdXML&gt;
1892
+ &lt;Request type=&quot;Campaign&quot;&gt;
1893
+ &lt;Campaign action=&quot;add&quot;&gt;
1894
+ &lt;Overview&gt;
1895
+ &lt;Id&gt;nztrugkqhwjoimevbpcfdslxya&lt;/Id&gt;
1896
+ &lt;AdvertiserId&gt;bobo&lt;/AdvertiserId&gt;
1897
+ &lt;Name&gt;LOLWUT&lt;/Name&gt;
1898
+ &lt;AgencyId&gt;unknown_agency&lt;/AgencyId&gt;
1899
+ &lt;ProductId&gt;default-product&lt;/ProductId&gt;
1900
+ &lt;/Overview&gt;
1901
+ &lt;Schedule&gt;
1902
+ &lt;Impressions&gt;999&lt;/Impressions&gt;
1903
+ &lt;Clicks&gt;0&lt;/Clicks&gt;
1904
+ &lt;Completion&gt;E&lt;/Completion&gt;
1905
+ &lt;Reach&gt;O&lt;/Reach&gt;
1906
+ &lt;/Schedule&gt;
1907
+ &lt;/Campaign&gt;
1908
+ &lt;/Request&gt;
1909
+ &lt;/AdXML&gt;
1910
+ </String_4></n1:OasXmlRequest></env:Body></env:Envelope>
1911
+ headers:
1912
+ soapaction:
1913
+ - "\"OasXmlRequest\""
1914
+ content-type:
1915
+ - text/xml;charset=UTF-8
1916
+ response: !ruby/struct:VCR::Response
1917
+ status: !ruby/struct:VCR::ResponseStatus
1918
+ code: 200
1919
+ message: OK
1920
+ headers:
1921
+ x-powered-by:
1922
+ - Servlet 2.5; JBoss-5.0/JBossWeb-2.1
1923
+ p3p:
1924
+ - CP="NON NID PSAa PSDa OUR IND UNI COM NAV STA",policyref="/w3c/p3p.xml"
1925
+ via:
1926
+ - 1.1 training7.247realmedia.com
1927
+ content-type:
1928
+ - text/xml;charset=UTF-8
1929
+ date:
1930
+ - Fri, 27 May 2011 13:12:16 GMT
1931
+ server:
1932
+ - Apache-Coyote/1.1
1933
+ transfer-encoding:
1934
+ - chunked
1935
+ body: |-
1936
+ <?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'?>
1937
+ &lt;AdXML>
1938
+
1939
+ &lt;Response>
1940
+ &lt;Campaign>
1941
+ &lt;Exception errorCode='502'>SmoothOrAsap must not be blank.&lt;/Exception>
1942
+ &lt;/Campaign>
1943
+ &lt;/Response>
1944
+ &lt;/AdXML></result></ns1:OasXmlRequestResponse></soapenv:Body></soapenv:Envelope>
1945
+ http_version: "1.1"
1946
+ - !ruby/struct:VCR::HTTPInteraction
1947
+ request: !ruby/struct:VCR::Request
1948
+ method: :post
1949
+ uri: https://training7.247realmedia.com:443/oasapi/OaxApi
1950
+ body: |-
1951
+ <?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;
1952
+ &lt;AdXML&gt;
1953
+ &lt;Request type=&quot;Campaign&quot;&gt;
1954
+ &lt;Campaign action=&quot;add&quot;&gt;
1955
+ &lt;Overview&gt;
1956
+ &lt;Id&gt;bvktrjxweslcymduofzgqahnip&lt;/Id&gt;
1957
+ &lt;AdvertiserId&gt;bobo&lt;/AdvertiserId&gt;
1958
+ &lt;Name&gt;LOLWUT&lt;/Name&gt;
1959
+ &lt;AgencyId&gt;unknown_agency&lt;/AgencyId&gt;
1960
+ &lt;ProductId&gt;default-product&lt;/ProductId&gt;
1961
+ &lt;/Overview&gt;
1962
+ &lt;Schedule&gt;
1963
+ &lt;Impressions&gt;999&lt;/Impressions&gt;
1964
+ &lt;Clicks&gt;0&lt;/Clicks&gt;
1965
+ &lt;Completion&gt;E&lt;/Completion&gt;
1966
+ &lt;Reach&gt;O&lt;/Reach&gt;
1967
+ &lt;SmoothOrAsap&gt;S&lt;/SmoothOrAsap&gt;
1968
+ &lt;/Schedule&gt;
1969
+ &lt;/Campaign&gt;
1970
+ &lt;/Request&gt;
1971
+ &lt;/AdXML&gt;
1972
+ </String_4></n1:OasXmlRequest></env:Body></env:Envelope>
1973
+ headers:
1974
+ content-type:
1975
+ - text/xml;charset=UTF-8
1976
+ soapaction:
1977
+ - "\"OasXmlRequest\""
1978
+ response: !ruby/struct:VCR::Response
1979
+ status: !ruby/struct:VCR::ResponseStatus
1980
+ code: 200
1981
+ message: OK
1982
+ headers:
1983
+ x-powered-by:
1984
+ - Servlet 2.5; JBoss-5.0/JBossWeb-2.1
1985
+ p3p:
1986
+ - CP="NON NID PSAa PSDa OUR IND UNI COM NAV STA",policyref="/w3c/p3p.xml"
1987
+ content-type:
1988
+ - text/xml;charset=UTF-8
1989
+ via:
1990
+ - 1.1 training7.247realmedia.com
1991
+ server:
1992
+ - Apache-Coyote/1.1
1993
+ date:
1994
+ - Fri, 27 May 2011 13:12:45 GMT
1995
+ transfer-encoding:
1996
+ - chunked
1997
+ body: |-
1998
+ <?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'?>
1999
+ &lt;AdXML>
2000
+
2001
+ &lt;Response>
2002
+ &lt;Campaign>
2003
+ &lt;Exception errorCode='502'>PriorityLevel must not be blank.&lt;/Exception>
2004
+ &lt;/Campaign>
2005
+ &lt;/Response>
2006
+ &lt;/AdXML></result></ns1:OasXmlRequestResponse></soapenv:Body></soapenv:Envelope>
2007
+ http_version: "1.1"
2008
+ - !ruby/struct:VCR::HTTPInteraction
2009
+ request: !ruby/struct:VCR::Request
2010
+ method: :post
2011
+ uri: https://training7.247realmedia.com:443/oasapi/OaxApi
2012
+ body: |-
2013
+ <?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;
2014
+ &lt;AdXML&gt;
2015
+ &lt;Request type=&quot;Campaign&quot;&gt;
2016
+ &lt;Campaign action=&quot;add&quot;&gt;
2017
+ &lt;Overview&gt;
2018
+ &lt;Id&gt;bzxuwnfaeydprqogmkcsvtjilh&lt;/Id&gt;
2019
+ &lt;AdvertiserId&gt;bobo&lt;/AdvertiserId&gt;
2020
+ &lt;Name&gt;LOLWUT&lt;/Name&gt;
2021
+ &lt;AgencyId&gt;unknown_agency&lt;/AgencyId&gt;
2022
+ &lt;ProductId&gt;default-product&lt;/ProductId&gt;
2023
+ &lt;/Overview&gt;
2024
+ &lt;Schedule&gt;
2025
+ &lt;Impressions&gt;999&lt;/Impressions&gt;
2026
+ &lt;Clicks&gt;0&lt;/Clicks&gt;
2027
+ &lt;PriorityLevel&gt;1&lt;/PriorityLevel&gt;
2028
+ &lt;Completion&gt;E&lt;/Completion&gt;
2029
+ &lt;Reach&gt;O&lt;/Reach&gt;
2030
+ &lt;SmoothOrAsap&gt;S&lt;/SmoothOrAsap&gt;
2031
+ &lt;/Schedule&gt;
2032
+ &lt;/Campaign&gt;
2033
+ &lt;/Request&gt;
2034
+ &lt;/AdXML&gt;
2035
+ </String_4></n1:OasXmlRequest></env:Body></env:Envelope>
2036
+ headers:
2037
+ soapaction:
2038
+ - "\"OasXmlRequest\""
2039
+ content-type:
2040
+ - text/xml;charset=UTF-8
2041
+ response: !ruby/struct:VCR::Response
2042
+ status: !ruby/struct:VCR::ResponseStatus
2043
+ code: 200
2044
+ message: OK
2045
+ headers:
2046
+ x-powered-by:
2047
+ - Servlet 2.5; JBoss-5.0/JBossWeb-2.1
2048
+ p3p:
2049
+ - CP="NON NID PSAa PSDa OUR IND UNI COM NAV STA",policyref="/w3c/p3p.xml"
2050
+ via:
2051
+ - 1.1 training7.247realmedia.com
2052
+ content-type:
2053
+ - text/xml;charset=UTF-8
2054
+ date:
2055
+ - Fri, 27 May 2011 13:13:17 GMT
2056
+ server:
2057
+ - Apache-Coyote/1.1
2058
+ transfer-encoding:
2059
+ - chunked
2060
+ body: |-
2061
+ <?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'?>
2062
+ &lt;AdXML>
2063
+
2064
+ &lt;Response>
2065
+ &lt;Campaign>
2066
+ &lt;Exception errorCode='578'>Completion E requires valid EndDate.&lt;/Exception>
2067
+ &lt;/Campaign>
2068
+ &lt;/Response>
2069
+ &lt;/AdXML></result></ns1:OasXmlRequestResponse></soapenv:Body></soapenv:Envelope>
2070
+ http_version: "1.1"
2071
+ - !ruby/struct:VCR::HTTPInteraction
2072
+ request: !ruby/struct:VCR::Request
2073
+ method: :post
2074
+ uri: https://training7.247realmedia.com:443/oasapi/OaxApi
2075
+ body: |-
2076
+ <?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;
2077
+ &lt;AdXML&gt;
2078
+ &lt;Request type=&quot;Campaign&quot;&gt;
2079
+ &lt;Campaign action=&quot;add&quot;&gt;
2080
+ &lt;Overview&gt;
2081
+ &lt;Id&gt;axrzgfhducyoneibptsmklwvqj&lt;/Id&gt;
2082
+ &lt;AdvertiserId&gt;bobo&lt;/AdvertiserId&gt;
2083
+ &lt;Name&gt;LOLWUT&lt;/Name&gt;
2084
+ &lt;AgencyId&gt;unknown_agency&lt;/AgencyId&gt;
2085
+ &lt;ProductId&gt;default-product&lt;/ProductId&gt;
2086
+ &lt;/Overview&gt;
2087
+ &lt;Schedule&gt;
2088
+ &lt;Impressions&gt;999&lt;/Impressions&gt;
2089
+ &lt;Clicks&gt;0&lt;/Clicks&gt;
2090
+ &lt;PriorityLevel&gt;1&lt;/PriorityLevel&gt;
2091
+ &lt;Completion&gt;S&lt;/Completion&gt;
2092
+ &lt;Reach&gt;O&lt;/Reach&gt;
2093
+ &lt;SmoothOrAsap&gt;S&lt;/SmoothOrAsap&gt;
2094
+ &lt;/Schedule&gt;
2095
+ &lt;/Campaign&gt;
2096
+ &lt;/Request&gt;
2097
+ &lt;/AdXML&gt;
2098
+ </String_4></n1:OasXmlRequest></env:Body></env:Envelope>
2099
+ headers:
2100
+ content-type:
2101
+ - text/xml;charset=UTF-8
2102
+ soapaction:
2103
+ - "\"OasXmlRequest\""
2104
+ response: !ruby/struct:VCR::Response
2105
+ status: !ruby/struct:VCR::ResponseStatus
2106
+ code: 200
2107
+ message: OK
2108
+ headers:
2109
+ x-powered-by:
2110
+ - Servlet 2.5; JBoss-5.0/JBossWeb-2.1
2111
+ p3p:
2112
+ - CP="NON NID PSAa PSDa OUR IND UNI COM NAV STA",policyref="/w3c/p3p.xml"
2113
+ content-type:
2114
+ - text/xml;charset=UTF-8
2115
+ via:
2116
+ - 1.1 training7.247realmedia.com
2117
+ server:
2118
+ - Apache-Coyote/1.1
2119
+ date:
2120
+ - Fri, 27 May 2011 13:14:01 GMT
2121
+ transfer-encoding:
2122
+ - chunked
2123
+ body: |-
2124
+ <?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'?>
2125
+ &lt;AdXML>
2126
+
2127
+ &lt;Response>
2128
+ &lt;Campaign>Successfully added.&lt;/Campaign>
2129
+ &lt;/Response>
2130
+ &lt;/AdXML></result></ns1:OasXmlRequestResponse></soapenv:Body></soapenv:Envelope>
2131
+ http_version: "1.1"
2132
+ - !ruby/struct:VCR::HTTPInteraction
2133
+ request: !ruby/struct:VCR::Request
2134
+ method: :post
2135
+ uri: https://training7.247realmedia.com:443/oasapi/OaxApi
2136
+ body: |-
2137
+ <?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;
2138
+ &lt;AdXML&gt;
2139
+ &lt;Request type=&quot;Campaign&quot;&gt;
2140
+ &lt;Campaign action=&quot;add&quot;&gt;
2141
+ &lt;Overview&gt;
2142
+ &lt;Id&gt;ymneuhzwikqbtojxcplsgfadvr&lt;/Id&gt;
2143
+ &lt;AdvertiserId&gt;bobo&lt;/AdvertiserId&gt;
2144
+ &lt;Name&gt;LOLWUT&lt;/Name&gt;
2145
+ &lt;AgencyId&gt;unknown_agency&lt;/AgencyId&gt;
2146
+ &lt;ProductId&gt;default-product&lt;/ProductId&gt;
2147
+ &lt;/Overview&gt;
2148
+ &lt;Schedule&gt;
2149
+ &lt;Impressions&gt;999&lt;/Impressions&gt;
2150
+ &lt;Clicks&gt;0&lt;/Clicks&gt;
2151
+ &lt;PriorityLevel&gt;1&lt;/PriorityLevel&gt;
2152
+ &lt;Completion&gt;S&lt;/Completion&gt;
2153
+ &lt;Reach&gt;O&lt;/Reach&gt;
2154
+ &lt;SmoothOrAsap&gt;S&lt;/SmoothOrAsap&gt;
2155
+ &lt;/Schedule&gt;
2156
+ &lt;/Campaign&gt;
2157
+ &lt;/Request&gt;
2158
+ &lt;/AdXML&gt;
2159
+ </String_4></n1:OasXmlRequest></env:Body></env:Envelope>
2160
+ headers:
2161
+ soapaction:
2162
+ - "\"OasXmlRequest\""
2163
+ content-type:
2164
+ - text/xml;charset=UTF-8
2165
+ response: !ruby/struct:VCR::Response
2166
+ status: !ruby/struct:VCR::ResponseStatus
2167
+ code: 200
2168
+ message: OK
2169
+ headers:
2170
+ x-powered-by:
2171
+ - Servlet 2.5; JBoss-5.0/JBossWeb-2.1
2172
+ p3p:
2173
+ - CP="NON NID PSAa PSDa OUR IND UNI COM NAV STA",policyref="/w3c/p3p.xml"
2174
+ via:
2175
+ - 1.1 training7.247realmedia.com
2176
+ content-type:
2177
+ - text/xml;charset=UTF-8
2178
+ date:
2179
+ - Fri, 27 May 2011 13:14:52 GMT
2180
+ server:
2181
+ - Apache-Coyote/1.1
2182
+ transfer-encoding:
2183
+ - chunked
2184
+ body: |-
2185
+ <?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'?>
2186
+ &lt;AdXML>
2187
+
2188
+ &lt;Response>
2189
+ &lt;Campaign>Successfully added.&lt;/Campaign>
2190
+ &lt;/Response>
2191
+ &lt;/AdXML></result></ns1:OasXmlRequestResponse></soapenv:Body></soapenv:Envelope>
2192
+ http_version: "1.1"
2193
+ - !ruby/struct:VCR::HTTPInteraction
2194
+ request: !ruby/struct:VCR::Request
2195
+ method: :post
2196
+ uri: https://training7.247realmedia.com:443/oasapi/OaxApi
2197
+ body: |-
2198
+ <?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;
2199
+ &lt;AdXML&gt;
2200
+ &lt;Request type=&quot;Campaign&quot;&gt;
2201
+ &lt;Campaign action=&quot;add&quot;&gt;
2202
+ &lt;Overview&gt;
2203
+ &lt;Id&gt;mhtdnozaqksecvgfwbljxyupri&lt;/Id&gt;
2204
+ &lt;AdvertiserId&gt;bobo&lt;/AdvertiserId&gt;
2205
+ &lt;Name&gt;LOLWUT&lt;/Name&gt;
2206
+ &lt;AgencyId&gt;unknown_agency&lt;/AgencyId&gt;
2207
+ &lt;CampaignManager&gt;lol&lt;/CampaignManager&gt;
2208
+ &lt;ProductId&gt;default-product&lt;/ProductId&gt;
2209
+ &lt;/Overview&gt;
2210
+ &lt;Schedule&gt;
2211
+ &lt;Impressions&gt;999&lt;/Impressions&gt;
2212
+ &lt;Clicks&gt;0&lt;/Clicks&gt;
2213
+ &lt;Uniques&gt;0&lt;/Uniques&gt;
2214
+ &lt;Weight&gt;10&lt;/Weight&gt;
2215
+ &lt;PriorityLevel&gt;1&lt;/PriorityLevel&gt;
2216
+ &lt;Completion&gt;E&lt;/Completion&gt;
2217
+ &lt;StartDate&gt;2005-12-01&lt;/StartDate&gt;
2218
+ &lt;EndDate&gt;2040-12-01&lt;/EndDate&gt;
2219
+ &lt;Reach&gt;O&lt;/Reach&gt;
2220
+ &lt;DailyImp&gt;99&lt;/DailyImp&gt;
2221
+ &lt;DailyClicks&gt;9&lt;/DailyClicks&gt;
2222
+ &lt;DailyUniq&gt;1&lt;/DailyUniq&gt;
2223
+ &lt;SmoothOrAsap&gt;S&lt;/SmoothOrAsap&gt;
2224
+ &lt;ImpOverrun&gt;2&lt;/ImpOverrun&gt;
2225
+ &lt;CompanionPositions&gt;
2226
+ &lt;CompanionPosition&gt;B/T&lt;/CompanionPosition&gt;
2227
+ &lt;CompanionPosition&gt;BL/TL&lt;/CompanionPosition&gt;
2228
+ &lt;/CompanionPositions&gt;
2229
+ &lt;StrictCompanions&gt;Y&lt;/StrictCompanions&gt;
2230
+ &lt;HourOfDay&gt;
2231
+ &lt;Hour&gt;00&lt;/Hour&gt;
2232
+ &lt;Hour&gt;01&lt;/Hour&gt;
2233
+ &lt;Hour&gt;23&lt;/Hour&gt;
2234
+ &lt;/HourOfDay&gt;
2235
+ &lt;DayOfWeek&gt;
2236
+ &lt;Day&gt;2&lt;/Day&gt;
2237
+ &lt;Day&gt;3&lt;/Day&gt;
2238
+ &lt;Day&gt;4&lt;/Day&gt;
2239
+ &lt;Day&gt;5&lt;/Day&gt;
2240
+ &lt;/DayOfWeek&gt;
2241
+ &lt;UserTimeZone&gt;Y&lt;/UserTimeZone&gt;
2242
+ &lt;Sections&gt;
2243
+ &lt;SectionId&gt;SectionABC&lt;/SectionId&gt;
2244
+ &lt;SectionId&gt;SectionDEF&lt;/SectionId&gt;
2245
+ &lt;/Sections&gt;
2246
+ &lt;/Schedule&gt;
2247
+ &lt;/Campaign&gt;
2248
+ &lt;/Request&gt;
2249
+ &lt;/AdXML&gt;
2250
+ </String_4></n1:OasXmlRequest></env:Body></env:Envelope>
2251
+ headers:
2252
+ content-type:
2253
+ - text/xml;charset=UTF-8
2254
+ soapaction:
2255
+ - "\"OasXmlRequest\""
2256
+ response: !ruby/struct:VCR::Response
2257
+ status: !ruby/struct:VCR::ResponseStatus
2258
+ code: 200
2259
+ message: OK
2260
+ headers:
2261
+ x-powered-by:
2262
+ - Servlet 2.5; JBoss-5.0/JBossWeb-2.1
2263
+ p3p:
2264
+ - CP="NON NID PSAa PSDa OUR IND UNI COM NAV STA",policyref="/w3c/p3p.xml"
2265
+ content-type:
2266
+ - text/xml;charset=UTF-8
2267
+ via:
2268
+ - 1.1 training7.247realmedia.com
2269
+ server:
2270
+ - Apache-Coyote/1.1
2271
+ date:
2272
+ - Fri, 27 May 2011 13:14:55 GMT
2273
+ transfer-encoding:
2274
+ - chunked
2275
+ body: |-
2276
+ <?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'?>
2277
+ &lt;AdXML>
2278
+
2279
+ &lt;Response>
2280
+ &lt;Campaign>Successfully added.&lt;/Campaign>
2281
+ &lt;/Response>
2282
+ &lt;/AdXML></result></ns1:OasXmlRequestResponse></soapenv:Body></soapenv:Envelope>
2283
+ http_version: "1.1"
2284
+ - !ruby/struct:VCR::HTTPInteraction
2285
+ request: !ruby/struct:VCR::Request
2286
+ method: :post
2287
+ uri: https://training7.247realmedia.com:443/oasapi/OaxApi
2288
+ body: |-
2289
+ <?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;
2290
+ &lt;AdXML&gt;
2291
+ &lt;Request type=&quot;Campaign&quot;&gt;
2292
+ &lt;Campaign action=&quot;add&quot;&gt;
2293
+ &lt;Overview&gt;
2294
+ &lt;Id&gt;dbnewgtsqrvyjlhcfkizumpxoa&lt;/Id&gt;
2295
+ &lt;AdvertiserId&gt;bobo&lt;/AdvertiserId&gt;
2296
+ &lt;Name&gt;LOLWUT&lt;/Name&gt;
2297
+ &lt;AgencyId&gt;unknown_agency&lt;/AgencyId&gt;
2298
+ &lt;ProductId&gt;default-product&lt;/ProductId&gt;
2299
+ &lt;/Overview&gt;
2300
+ &lt;Schedule&gt;
2301
+ &lt;Impressions&gt;999&lt;/Impressions&gt;
2302
+ &lt;Clicks&gt;0&lt;/Clicks&gt;
2303
+ &lt;PriorityLevel&gt;1&lt;/PriorityLevel&gt;
2304
+ &lt;Completion&gt;S&lt;/Completion&gt;
2305
+ &lt;Reach&gt;O&lt;/Reach&gt;
2306
+ &lt;SmoothOrAsap&gt;S&lt;/SmoothOrAsap&gt;
2307
+ &lt;/Schedule&gt;
2308
+ &lt;/Campaign&gt;
2309
+ &lt;/Request&gt;
2310
+ &lt;/AdXML&gt;
2311
+ </String_4></n1:OasXmlRequest></env:Body></env:Envelope>
2312
+ headers:
2313
+ soapaction:
2314
+ - "\"OasXmlRequest\""
2315
+ content-type:
2316
+ - text/xml;charset=UTF-8
2317
+ response: !ruby/struct:VCR::Response
2318
+ status: !ruby/struct:VCR::ResponseStatus
2319
+ code: 200
2320
+ message: OK
2321
+ headers:
2322
+ x-powered-by:
2323
+ - Servlet 2.5; JBoss-5.0/JBossWeb-2.1
2324
+ p3p:
2325
+ - CP="NON NID PSAa PSDa OUR IND UNI COM NAV STA",policyref="/w3c/p3p.xml"
2326
+ via:
2327
+ - 1.1 training7.247realmedia.com
2328
+ content-type:
2329
+ - text/xml;charset=UTF-8
2330
+ date:
2331
+ - Fri, 27 May 2011 13:17:02 GMT
2332
+ server:
2333
+ - Apache-Coyote/1.1
2334
+ transfer-encoding:
2335
+ - chunked
2336
+ body: |-
2337
+ <?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'?>
2338
+ &lt;AdXML>
2339
+
2340
+ &lt;Response>
2341
+ &lt;Campaign>Successfully added.&lt;/Campaign>
2342
+ &lt;/Response>
2343
+ &lt;/AdXML></result></ns1:OasXmlRequestResponse></soapenv:Body></soapenv:Envelope>
2344
+ http_version: "1.1"
2345
+ - !ruby/struct:VCR::HTTPInteraction
2346
+ request: !ruby/struct:VCR::Request
2347
+ method: :post
2348
+ uri: https://training7.247realmedia.com:443/oasapi/OaxApi
2349
+ body: |-
2350
+ <?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;
2351
+ &lt;AdXML&gt;
2352
+ &lt;Request type=&quot;Campaign&quot;&gt;
2353
+ &lt;Campaign action=&quot;add&quot;&gt;
2354
+ &lt;Overview&gt;
2355
+ &lt;Id&gt;cavxkbyeiwsnmpflqgruodztjh&lt;/Id&gt;
2356
+ &lt;AdvertiserId&gt;bobo&lt;/AdvertiserId&gt;
2357
+ &lt;Name&gt;LOLWUT&lt;/Name&gt;
2358
+ &lt;AgencyId&gt;unknown_agency&lt;/AgencyId&gt;
2359
+ &lt;Description&gt;lolwut&lt;/Description&gt;
2360
+ &lt;CampaignManager&gt;lol&lt;/CampaignManager&gt;
2361
+ &lt;ProductId&gt;default-product&lt;/ProductId&gt;
2362
+ &lt;InternalQuickReport&gt;short&lt;/InternalQuickReport&gt;
2363
+ &lt;ExternalQuickReport&gt;short&lt;/ExternalQuickReport&gt;
2364
+ &lt;/Overview&gt;
2365
+ &lt;Schedule&gt;
2366
+ &lt;Impressions&gt;999&lt;/Impressions&gt;
2367
+ &lt;Clicks&gt;0&lt;/Clicks&gt;
2368
+ &lt;Uniques&gt;0&lt;/Uniques&gt;
2369
+ &lt;Weight&gt;10&lt;/Weight&gt;
2370
+ &lt;PriorityLevel&gt;1&lt;/PriorityLevel&gt;
2371
+ &lt;Completion&gt;E&lt;/Completion&gt;
2372
+ &lt;StartDate&gt;2005-12-01&lt;/StartDate&gt;
2373
+ &lt;EndDate&gt;2040-12-01&lt;/EndDate&gt;
2374
+ &lt;Reach&gt;O&lt;/Reach&gt;
2375
+ &lt;DailyImp&gt;99&lt;/DailyImp&gt;
2376
+ &lt;DailyClicks&gt;9&lt;/DailyClicks&gt;
2377
+ &lt;DailyUniq&gt;1&lt;/DailyUniq&gt;
2378
+ &lt;SmoothOrAsap&gt;S&lt;/SmoothOrAsap&gt;
2379
+ &lt;ImpOverrun&gt;2&lt;/ImpOverrun&gt;
2380
+ &lt;CompanionPositions&gt;
2381
+ &lt;CompanionPosition&gt;B/T&lt;/CompanionPosition&gt;
2382
+ &lt;CompanionPosition&gt;BL/TL&lt;/CompanionPosition&gt;
2383
+ &lt;/CompanionPositions&gt;
2384
+ &lt;StrictCompanions&gt;Y&lt;/StrictCompanions&gt;
2385
+ &lt;HourOfDay&gt;
2386
+ &lt;Hour&gt;00&lt;/Hour&gt;
2387
+ &lt;Hour&gt;01&lt;/Hour&gt;
2388
+ &lt;Hour&gt;23&lt;/Hour&gt;
2389
+ &lt;/HourOfDay&gt;
2390
+ &lt;DayOfWeek&gt;
2391
+ &lt;Day&gt;2&lt;/Day&gt;
2392
+ &lt;Day&gt;3&lt;/Day&gt;
2393
+ &lt;Day&gt;4&lt;/Day&gt;
2394
+ &lt;Day&gt;5&lt;/Day&gt;
2395
+ &lt;/DayOfWeek&gt;
2396
+ &lt;UserTimeZone&gt;Y&lt;/UserTimeZone&gt;
2397
+ &lt;Sections&gt;
2398
+ &lt;SectionId&gt;SectionABC&lt;/SectionId&gt;
2399
+ &lt;SectionId&gt;SectionDEF&lt;/SectionId&gt;
2400
+ &lt;/Sections&gt;
2401
+ &lt;/Schedule&gt;
2402
+ &lt;/Campaign&gt;
2403
+ &lt;/Request&gt;
2404
+ &lt;/AdXML&gt;
2405
+ </String_4></n1:OasXmlRequest></env:Body></env:Envelope>
2406
+ headers:
2407
+ content-type:
2408
+ - text/xml;charset=UTF-8
2409
+ soapaction:
2410
+ - "\"OasXmlRequest\""
2411
+ response: !ruby/struct:VCR::Response
2412
+ status: !ruby/struct:VCR::ResponseStatus
2413
+ code: 200
2414
+ message: OK
2415
+ headers:
2416
+ x-powered-by:
2417
+ - Servlet 2.5; JBoss-5.0/JBossWeb-2.1
2418
+ p3p:
2419
+ - CP="NON NID PSAa PSDa OUR IND UNI COM NAV STA",policyref="/w3c/p3p.xml"
2420
+ content-type:
2421
+ - text/xml;charset=UTF-8
2422
+ via:
2423
+ - 1.1 training7.247realmedia.com
2424
+ server:
2425
+ - Apache-Coyote/1.1
2426
+ date:
2427
+ - Fri, 27 May 2011 13:17:04 GMT
1662
2428
  transfer-encoding:
1663
2429
  - chunked
1664
2430
  body: |-