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 +1 -0
- data/README.md +9 -0
- data/lib/oass.rb +1 -3
- data/lib/oass/client.rb +4 -1
- data/lib/oass/client/campaign.rb +98 -0
- data/lib/oass/client/creative.rb +62 -0
- data/lib/oass/version.rb +1 -1
- data/spec/fixtures/creative_file.png +0 -0
- data/spec/fixtures/vcr_cassettes/Invalid_campaign_movie.yml +60 -0
- data/spec/fixtures/vcr_cassettes/Invalid_creative_movie.yml +70 -0
- data/spec/fixtures/vcr_cassettes/Oass_Client/_create_campaign.yml +1672 -0
- data/spec/fixtures/vcr_cassettes/Oass_Client/_create_creative.yml +3855 -0
- data/spec/fixtures/vcr_cassettes/Oass_Client/_create_creative/with_a_creative_file.yml +1000 -0
- data/spec/fixtures/vcr_cassettes/Oass_Client/_read_campaign.yml +1177 -37
- data/spec/fixtures/vcr_cassettes/Oass_Client/_read_creative.yml +1176 -37
- data/spec/fixtures/vcr_cassettes/Oass_Client/_request.yml +2334 -54
- data/spec/oass/client_spec.rb +88 -10
- data/spec/oass/configuration_spec.rb +8 -0
- data/spec/spec_helper.rb +7 -0
- metadata +18 -6
- data/lib/oass/campaign.rb +0 -35
- data/lib/oass/creative.rb +0 -50
data/.gitignore
CHANGED
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
|
-
|
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
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><?xml version="1.0" encoding="UTF-8"?>
|
8
|
+
<AdXML>
|
9
|
+
<Request type="Campaign">
|
10
|
+
<Campaign action="add">
|
11
|
+
<Overview>
|
12
|
+
<Id></Id>
|
13
|
+
<AdvertiserId></AdvertiserId>
|
14
|
+
<Name></Name>
|
15
|
+
<AgencyId></AgencyId>
|
16
|
+
<Description></Description>
|
17
|
+
<CampaignManager></CampaignManager>
|
18
|
+
<ProductId></ProductId>
|
19
|
+
<InternalQuickReport></InternalQuickReport>
|
20
|
+
<ExternalQuickReport></ExternalQuickReport>
|
21
|
+
</Overview>
|
22
|
+
</Campaign>
|
23
|
+
</Request>
|
24
|
+
</AdXML>
|
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><?xml version='1.0'?>
|
52
|
+
<AdXML>
|
53
|
+
|
54
|
+
<Response>
|
55
|
+
<Campaign>
|
56
|
+
<Exception errorCode='505'> is an invalid value for Id</Exception>
|
57
|
+
</Campaign>
|
58
|
+
</Response>
|
59
|
+
</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><?xml version="1.0" encoding="UTF-8"?>
|
8
|
+
<AdXML>
|
9
|
+
<Request type="Creative">
|
10
|
+
<Creative action="add">
|
11
|
+
<CampaignId></CampaignId>
|
12
|
+
<Id></Id>
|
13
|
+
<Name></Name>
|
14
|
+
<Description></Description>
|
15
|
+
<ClickUrl></ClickUrl>
|
16
|
+
<CreativeTypesId></CreativeTypesId>
|
17
|
+
<RedirectUrl></RedirectUrl>
|
18
|
+
<Display></Display>
|
19
|
+
<Height></Height>
|
20
|
+
<Width></Width>
|
21
|
+
<TargetWindow></TargetWindow>
|
22
|
+
<AltText></AltText>
|
23
|
+
<DiscountImpressions></DiscountImpressions>
|
24
|
+
<StartDate></StartDate>
|
25
|
+
<EndDate></EndDate>
|
26
|
+
<Weight></Weight>
|
27
|
+
<ExpireImmediately></ExpireImmediately>
|
28
|
+
<NoCache></NoCache>
|
29
|
+
<ExtraHTML></ExtraHTML>
|
30
|
+
<ExtraText></ExtraText>
|
31
|
+
<SequenceNo></SequenceNo>
|
32
|
+
</Creative>
|
33
|
+
</Request>
|
34
|
+
</AdXML>
|
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><?xml version='1.0'?>
|
62
|
+
<AdXML>
|
63
|
+
|
64
|
+
<Response>
|
65
|
+
<Creative>
|
66
|
+
<Exception errorCode='502'>CampaignId must not be blank.</Exception>
|
67
|
+
</Creative>
|
68
|
+
</Response>
|
69
|
+
</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><?xml version="1.0" encoding="UTF-8"?>
|
86
|
+
<AdXML>
|
87
|
+
<Request type="Campaign">
|
88
|
+
<Campaign action="add">
|
89
|
+
<Overview>
|
90
|
+
<Id>random_id_lolwut_wtf</Id>
|
91
|
+
<AdvertiserId>bobo</AdvertiserId>
|
92
|
+
<Name>LOLWUT</Name>
|
93
|
+
<AgencyId>unknown_agency</AgencyId>
|
94
|
+
<Description></Description>
|
95
|
+
<CampaignManager>lol</CampaignManager>
|
96
|
+
<ProductId>default-product</ProductId>
|
97
|
+
<InternalQuickReport></InternalQuickReport>
|
98
|
+
<ExternalQuickReport></ExternalQuickReport>
|
99
|
+
</Overview>
|
100
|
+
</Campaign>
|
101
|
+
</Request>
|
102
|
+
</AdXML>
|
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><?xml version='1.0'?>
|
130
|
+
<AdXML>
|
131
|
+
|
132
|
+
<Response>
|
133
|
+
<Campaign>Successfully added.</Campaign>
|
134
|
+
</Response>
|
135
|
+
</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><?xml version="1.0" encoding="UTF-8"?>
|
221
|
+
<AdXML>
|
222
|
+
<Request type="Campaign">
|
223
|
+
<Campaign action="add">
|
224
|
+
<Overview>
|
225
|
+
<Id>random_id_lolwut_wtf</Id>
|
226
|
+
<AdvertiserId>bobo</AdvertiserId>
|
227
|
+
<Name>LOLWUT</Name>
|
228
|
+
<AgencyId>unknown_agency</AgencyId>
|
229
|
+
<Description></Description>
|
230
|
+
<CampaignManager>lol</CampaignManager>
|
231
|
+
<ProductId>default-product</ProductId>
|
232
|
+
<InternalQuickReport></InternalQuickReport>
|
233
|
+
<ExternalQuickReport></ExternalQuickReport>
|
234
|
+
</Overview>
|
235
|
+
<Schedule>
|
236
|
+
<Impressions>999</Impressions>
|
237
|
+
<Clicks>0</Clicks>
|
238
|
+
<Uniques>0</Uniques>
|
239
|
+
<Weight>10</Weight>
|
240
|
+
<PriorityLevel>1</PriorityLevel>
|
241
|
+
<Completion>E</Completion>
|
242
|
+
<StartDate>2005-12-01</StartDate>
|
243
|
+
<EndDate>2040-12-01</EndDate>
|
244
|
+
<Reach>O</Reach>
|
245
|
+
<DailyImp>99</DailyImp>
|
246
|
+
<DailyClicks>9</DailyClicks>
|
247
|
+
<DailyUniq>1</DailyUniq>
|
248
|
+
<SmoothOrAsap>S</SmoothOrAsap>
|
249
|
+
<ImpOverrun>2</ImpOverrun>
|
250
|
+
<CompanionPositions>
|
251
|
+
<CompanionPosition>B/T</CompanionPosition>
|
252
|
+
<CompanionPosition>BL/TL</CompanionPosition>
|
253
|
+
</CompanionPositions>
|
254
|
+
<StrictCompanions>Y</StrictCompanions>
|
255
|
+
<PrimaryFrequency>
|
256
|
+
<ImpPerVisitor>2</ImpPerVisitor>
|
257
|
+
<ClickPerVisitor>0</ClickPerVisitor>
|
258
|
+
<FreqScore>Y</FreqScore>
|
259
|
+
</PrimaryFrequency>
|
260
|
+
<SecondaryFrequency>
|
261
|
+
<ImpPerVisitor>2</ImpPerVisitor>
|
262
|
+
<ClickPerVisitor>0</ClickPerVisitor>
|
263
|
+
<FreqScore>Y</FreqScore>
|
264
|
+
</SecondaryFrequency>
|
265
|
+
<HourOfDay>
|
266
|
+
<Hour>00</Hour>
|
267
|
+
<Hour>01</Hour>
|
268
|
+
<Hour>23</Hour>
|
269
|
+
</HourOfDay>
|
270
|
+
<DayOfWeek>
|
271
|
+
<Day>2</Day>
|
272
|
+
<Day>3</Day>
|
273
|
+
<Day>4</Day>
|
274
|
+
<Day>5</Day>
|
275
|
+
</DayOfWeek>
|
276
|
+
<UserTimeZone>Y</UserTimeZone>
|
277
|
+
<Sections>
|
278
|
+
<SectionId>SectionABC</SectionId>
|
279
|
+
<SectionId>SectionDEF</SectionId>
|
280
|
+
</Sections>
|
281
|
+
</Schedule>
|
282
|
+
</Campaign>
|
283
|
+
</Request>
|
284
|
+
</AdXML>
|
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><?xml version='1.0'?>
|
312
|
+
<AdXML>
|
313
|
+
<Response>
|
314
|
+
<Exception errorCode='370'><![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]]></Exception>
|
319
|
+
</Response>
|
320
|
+
</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><?xml version="1.0" encoding="UTF-8"?>
|
328
|
+
<AdXML>
|
329
|
+
<Request type="Campaign">
|
330
|
+
<Campaign action="add">
|
331
|
+
<Overview>
|
332
|
+
<Id>random_id_lolwut_wtf</Id>
|
333
|
+
<AdvertiserId>bobo</AdvertiserId>
|
334
|
+
<Name>LOLWUT</Name>
|
335
|
+
<AgencyId>unknown_agency</AgencyId>
|
336
|
+
<Description></Description>
|
337
|
+
<CampaignManager>lol</CampaignManager>
|
338
|
+
<ProductId>default-product</ProductId>
|
339
|
+
<InternalQuickReport></InternalQuickReport>
|
340
|
+
<ExternalQuickReport></ExternalQuickReport>
|
341
|
+
</Overview>
|
342
|
+
<Schedule>
|
343
|
+
<Impressions>999</Impressions>
|
344
|
+
<Clicks>0</Clicks>
|
345
|
+
<Uniques>0</Uniques>
|
346
|
+
<Weight>10</Weight>
|
347
|
+
<PriorityLevel>1</PriorityLevel>
|
348
|
+
<Completion>E</Completion>
|
349
|
+
<StartDate>2005-12-01</StartDate>
|
350
|
+
<EndDate>2040-12-01</EndDate>
|
351
|
+
<Reach>O</Reach>
|
352
|
+
<DailyImp>99</DailyImp>
|
353
|
+
<DailyClicks>9</DailyClicks>
|
354
|
+
<DailyUniq>1</DailyUniq>
|
355
|
+
<SmoothOrAsap>S</SmoothOrAsap>
|
356
|
+
<ImpOverrun>2</ImpOverrun>
|
357
|
+
<CompanionPositions>
|
358
|
+
<CompanionPosition>B/T</CompanionPosition>
|
359
|
+
<CompanionPosition>BL/TL</CompanionPosition>
|
360
|
+
</CompanionPositions>
|
361
|
+
<StrictCompanions>Y</StrictCompanions>
|
362
|
+
<PrimaryFrequency>
|
363
|
+
<ImpPerVisitor>2</ImpPerVisitor>
|
364
|
+
<FreqScore>Y</FreqScore>
|
365
|
+
<ClickPerVisitor>0</ClickPerVisitor>
|
366
|
+
</PrimaryFrequency>
|
367
|
+
<SecondaryFrequency>
|
368
|
+
<ImpPerVisitor>2</ImpPerVisitor>
|
369
|
+
<FreqScore>Y</FreqScore>
|
370
|
+
<ClickPerVisitor>0</ClickPerVisitor>
|
371
|
+
</SecondaryFrequency>
|
372
|
+
<HourOfDay>
|
373
|
+
<Hour>00</Hour>
|
374
|
+
<Hour>01</Hour>
|
375
|
+
<Hour>23</Hour>
|
376
|
+
</HourOfDay>
|
377
|
+
<DayOfWeek>
|
378
|
+
<Day>2</Day>
|
379
|
+
<Day>3</Day>
|
380
|
+
<Day>4</Day>
|
381
|
+
<Day>5</Day>
|
382
|
+
</DayOfWeek>
|
383
|
+
<UserTimeZone>Y</UserTimeZone>
|
384
|
+
<Sections>
|
385
|
+
<SectionId>SectionABC</SectionId>
|
386
|
+
<SectionId>SectionDEF</SectionId>
|
387
|
+
</Sections>
|
388
|
+
</Schedule>
|
389
|
+
</Campaign>
|
390
|
+
</Request>
|
391
|
+
</AdXML>
|
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><?xml version='1.0'?>
|
419
|
+
<AdXML>
|
420
|
+
<Response>
|
421
|
+
<Exception errorCode='370'><![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]]></Exception>
|
426
|
+
</Response>
|
427
|
+
</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><?xml version="1.0" encoding="UTF-8"?>
|
435
|
+
<AdXML>
|
436
|
+
<Request type="Campaign">
|
437
|
+
<Campaign action="add">
|
438
|
+
<Overview>
|
439
|
+
<Id>random_id_lolwut_wtf</Id>
|
440
|
+
<AdvertiserId>bobo</AdvertiserId>
|
441
|
+
<Name>LOLWUT</Name>
|
442
|
+
<AgencyId>unknown_agency</AgencyId>
|
443
|
+
<Description></Description>
|
444
|
+
<CampaignManager>lol</CampaignManager>
|
445
|
+
<ProductId>default-product</ProductId>
|
446
|
+
<InternalQuickReport></InternalQuickReport>
|
447
|
+
<ExternalQuickReport></ExternalQuickReport>
|
448
|
+
</Overview>
|
449
|
+
<Schedule>
|
450
|
+
<Impressions>999</Impressions>
|
451
|
+
<Clicks>0</Clicks>
|
452
|
+
<Uniques>0</Uniques>
|
453
|
+
<Weight>10</Weight>
|
454
|
+
<PriorityLevel>1</PriorityLevel>
|
455
|
+
<Completion>E</Completion>
|
456
|
+
<StartDate>2005-12-01</StartDate>
|
457
|
+
<EndDate>2040-12-01</EndDate>
|
458
|
+
<Reach>O</Reach>
|
459
|
+
<DailyImp>99</DailyImp>
|
460
|
+
<DailyClicks>9</DailyClicks>
|
461
|
+
<DailyUniq>1</DailyUniq>
|
462
|
+
<SmoothOrAsap>S</SmoothOrAsap>
|
463
|
+
<ImpOverrun>2</ImpOverrun>
|
464
|
+
<CompanionPositions>
|
465
|
+
<CompanionPosition>B/T</CompanionPosition>
|
466
|
+
<CompanionPosition>BL/TL</CompanionPosition>
|
467
|
+
</CompanionPositions>
|
468
|
+
<StrictCompanions>Y</StrictCompanions>
|
469
|
+
<PrimaryFrequency>
|
470
|
+
<ImpPerVisitor>2</ImpPerVisitor>
|
471
|
+
<FreqScore>Y</FreqScore>
|
472
|
+
</PrimaryFrequency>
|
473
|
+
<SecondaryFrequency>
|
474
|
+
<ImpPerVisitor>2</ImpPerVisitor>
|
475
|
+
<FreqScore>Y</FreqScore>
|
476
|
+
</SecondaryFrequency>
|
477
|
+
<HourOfDay>
|
478
|
+
<Hour>00</Hour>
|
479
|
+
<Hour>01</Hour>
|
480
|
+
<Hour>23</Hour>
|
481
|
+
</HourOfDay>
|
482
|
+
<DayOfWeek>
|
483
|
+
<Day>2</Day>
|
484
|
+
<Day>3</Day>
|
485
|
+
<Day>4</Day>
|
486
|
+
<Day>5</Day>
|
487
|
+
</DayOfWeek>
|
488
|
+
<UserTimeZone>Y</UserTimeZone>
|
489
|
+
<Sections>
|
490
|
+
<SectionId>SectionABC</SectionId>
|
491
|
+
<SectionId>SectionDEF</SectionId>
|
492
|
+
</Sections>
|
493
|
+
</Schedule>
|
494
|
+
</Campaign>
|
495
|
+
</Request>
|
496
|
+
</AdXML>
|
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><?xml version='1.0'?>
|
524
|
+
<AdXML>
|
525
|
+
<Response>
|
526
|
+
<Exception errorCode='370'><![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]]></Exception>
|
531
|
+
</Response>
|
532
|
+
</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><?xml version="1.0" encoding="UTF-8"?>
|
540
|
+
<AdXML>
|
541
|
+
<Request type="Campaign">
|
542
|
+
<Campaign action="add">
|
543
|
+
<Overview>
|
544
|
+
<Id>random_id_lolwut_wtf</Id>
|
545
|
+
<AdvertiserId>bobo</AdvertiserId>
|
546
|
+
<Name>LOLWUT</Name>
|
547
|
+
<AgencyId>unknown_agency</AgencyId>
|
548
|
+
<Description></Description>
|
549
|
+
<CampaignManager>lol</CampaignManager>
|
550
|
+
<ProductId>default-product</ProductId>
|
551
|
+
<InternalQuickReport></InternalQuickReport>
|
552
|
+
<ExternalQuickReport></ExternalQuickReport>
|
553
|
+
</Overview>
|
554
|
+
<Schedule>
|
555
|
+
<Impressions>999</Impressions>
|
556
|
+
<Clicks>0</Clicks>
|
557
|
+
<Uniques>0</Uniques>
|
558
|
+
<Weight>10</Weight>
|
559
|
+
<PriorityLevel>1</PriorityLevel>
|
560
|
+
<Completion>E</Completion>
|
561
|
+
<StartDate>2005-12-01</StartDate>
|
562
|
+
<EndDate>2040-12-01</EndDate>
|
563
|
+
<Reach>O</Reach>
|
564
|
+
<DailyImp>99</DailyImp>
|
565
|
+
<DailyClicks>9</DailyClicks>
|
566
|
+
<DailyUniq>1</DailyUniq>
|
567
|
+
<SmoothOrAsap>S</SmoothOrAsap>
|
568
|
+
<ImpOverrun>2</ImpOverrun>
|
569
|
+
<CompanionPositions>
|
570
|
+
<CompanionPosition>B/T</CompanionPosition>
|
571
|
+
<CompanionPosition>BL/TL</CompanionPosition>
|
572
|
+
</CompanionPositions>
|
573
|
+
<StrictCompanions>Y</StrictCompanions>
|
574
|
+
<PrimaryFrequency>
|
575
|
+
<ImpPerVisitor>2</ImpPerVisitor>
|
576
|
+
<ClickPerVisitor>0</ClickPerVisitor>
|
577
|
+
<FreqScope>Y</FreqScope>
|
578
|
+
</PrimaryFrequency>
|
579
|
+
<SecondaryFrequency>
|
580
|
+
<ImpPerVisitor>2</ImpPerVisitor>
|
581
|
+
<ClickPerVisitor>0</ClickPerVisitor>
|
582
|
+
<FreqScope>Y</FreqScope>
|
583
|
+
</SecondaryFrequency>
|
584
|
+
<HourOfDay>
|
585
|
+
<Hour>00</Hour>
|
586
|
+
<Hour>01</Hour>
|
587
|
+
<Hour>23</Hour>
|
588
|
+
</HourOfDay>
|
589
|
+
<DayOfWeek>
|
590
|
+
<Day>2</Day>
|
591
|
+
<Day>3</Day>
|
592
|
+
<Day>4</Day>
|
593
|
+
<Day>5</Day>
|
594
|
+
</DayOfWeek>
|
595
|
+
<UserTimeZone>Y</UserTimeZone>
|
596
|
+
<Sections>
|
597
|
+
<SectionId>SectionABC</SectionId>
|
598
|
+
<SectionId>SectionDEF</SectionId>
|
599
|
+
</Sections>
|
600
|
+
</Schedule>
|
601
|
+
</Campaign>
|
602
|
+
</Request>
|
603
|
+
</AdXML>
|
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><?xml version='1.0'?>
|
631
|
+
<AdXML>
|
632
|
+
<Response>
|
633
|
+
<Exception errorCode='370'><![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]]></Exception>
|
638
|
+
</Response>
|
639
|
+
</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><?xml version="1.0" encoding="UTF-8"?>
|
647
|
+
<AdXML>
|
648
|
+
<Request type="Campaign">
|
649
|
+
<Campaign action="add">
|
650
|
+
<Overview>
|
651
|
+
<Id>random_id_lolwut_wtf</Id>
|
652
|
+
<AdvertiserId>bobo</AdvertiserId>
|
653
|
+
<Name>LOLWUT</Name>
|
654
|
+
<AgencyId>unknown_agency</AgencyId>
|
655
|
+
<Description></Description>
|
656
|
+
<CampaignManager>lol</CampaignManager>
|
657
|
+
<ProductId>default-product</ProductId>
|
658
|
+
<InternalQuickReport></InternalQuickReport>
|
659
|
+
<ExternalQuickReport></ExternalQuickReport>
|
660
|
+
</Overview>
|
661
|
+
<Schedule>
|
662
|
+
<Impressions>999</Impressions>
|
663
|
+
<Clicks>0</Clicks>
|
664
|
+
<Uniques>0</Uniques>
|
665
|
+
<Weight>10</Weight>
|
666
|
+
<PriorityLevel>1</PriorityLevel>
|
667
|
+
<Completion>E</Completion>
|
668
|
+
<StartDate>2005-12-01</StartDate>
|
669
|
+
<EndDate>2040-12-01</EndDate>
|
670
|
+
<Reach>O</Reach>
|
671
|
+
<DailyImp>99</DailyImp>
|
672
|
+
<DailyClicks>9</DailyClicks>
|
673
|
+
<DailyUniq>1</DailyUniq>
|
674
|
+
<SmoothOrAsap>S</SmoothOrAsap>
|
675
|
+
<ImpOverrun>2</ImpOverrun>
|
676
|
+
<CompanionPositions>
|
677
|
+
<CompanionPosition>B/T</CompanionPosition>
|
678
|
+
<CompanionPosition>BL/TL</CompanionPosition>
|
679
|
+
</CompanionPositions>
|
680
|
+
<StrictCompanions>Y</StrictCompanions>
|
681
|
+
<PrimaryFrequency>
|
682
|
+
<ImpPerVisitor>2</ImpPerVisitor>
|
683
|
+
<FreqScope>Y</FreqScope>
|
684
|
+
</PrimaryFrequency>
|
685
|
+
<SecondaryFrequency>
|
686
|
+
<ImpPerVisitor>2</ImpPerVisitor>
|
687
|
+
<FreqScope>Y</FreqScope>
|
688
|
+
</SecondaryFrequency>
|
689
|
+
<HourOfDay>
|
690
|
+
<Hour>00</Hour>
|
691
|
+
<Hour>01</Hour>
|
692
|
+
<Hour>23</Hour>
|
693
|
+
</HourOfDay>
|
694
|
+
<DayOfWeek>
|
695
|
+
<Day>2</Day>
|
696
|
+
<Day>3</Day>
|
697
|
+
<Day>4</Day>
|
698
|
+
<Day>5</Day>
|
699
|
+
</DayOfWeek>
|
700
|
+
<UserTimeZone>Y</UserTimeZone>
|
701
|
+
<Sections>
|
702
|
+
<SectionId>SectionABC</SectionId>
|
703
|
+
<SectionId>SectionDEF</SectionId>
|
704
|
+
</Sections>
|
705
|
+
</Schedule>
|
706
|
+
</Campaign>
|
707
|
+
</Request>
|
708
|
+
</AdXML>
|
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><?xml version='1.0'?>
|
736
|
+
<AdXML>
|
737
|
+
|
738
|
+
<Response>
|
739
|
+
<Campaign>
|
740
|
+
<Exception errorCode='502'>ClickPerVisitor must not be blank.</Exception>
|
741
|
+
</Campaign>
|
742
|
+
</Response>
|
743
|
+
</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><?xml version="1.0" encoding="UTF-8"?>
|
751
|
+
<AdXML>
|
752
|
+
<Request type="Campaign">
|
753
|
+
<Campaign action="add">
|
754
|
+
<Overview>
|
755
|
+
<Id>random_id_lolwut_wtf</Id>
|
756
|
+
<AdvertiserId>bobo</AdvertiserId>
|
757
|
+
<Name>LOLWUT</Name>
|
758
|
+
<AgencyId>unknown_agency</AgencyId>
|
759
|
+
<Description></Description>
|
760
|
+
<CampaignManager>lol</CampaignManager>
|
761
|
+
<ProductId>default-product</ProductId>
|
762
|
+
<InternalQuickReport></InternalQuickReport>
|
763
|
+
<ExternalQuickReport></ExternalQuickReport>
|
764
|
+
</Overview>
|
765
|
+
<Schedule>
|
766
|
+
<Impressions>999</Impressions>
|
767
|
+
<Clicks>0</Clicks>
|
768
|
+
<Uniques>0</Uniques>
|
769
|
+
<Weight>10</Weight>
|
770
|
+
<PriorityLevel>1</PriorityLevel>
|
771
|
+
<Completion>E</Completion>
|
772
|
+
<StartDate>2005-12-01</StartDate>
|
773
|
+
<EndDate>2040-12-01</EndDate>
|
774
|
+
<Reach>O</Reach>
|
775
|
+
<DailyImp>99</DailyImp>
|
776
|
+
<DailyClicks>9</DailyClicks>
|
777
|
+
<DailyUniq>1</DailyUniq>
|
778
|
+
<SmoothOrAsap>S</SmoothOrAsap>
|
779
|
+
<ImpOverrun>2</ImpOverrun>
|
780
|
+
<CompanionPositions>
|
781
|
+
<CompanionPosition>B/T</CompanionPosition>
|
782
|
+
<CompanionPosition>BL/TL</CompanionPosition>
|
783
|
+
</CompanionPositions>
|
784
|
+
<StrictCompanions>Y</StrictCompanions>
|
785
|
+
<PrimaryFrequency>
|
786
|
+
<ImpPerVisitor>2</ImpPerVisitor>
|
787
|
+
<FreqScope>Y</FreqScope>
|
788
|
+
<ClickPerVisitor>0</ClickPerVisitor>
|
789
|
+
</PrimaryFrequency>
|
790
|
+
<SecondaryFrequency>
|
791
|
+
<ImpPerVisitor>2</ImpPerVisitor>
|
792
|
+
<FreqScope>Y</FreqScope>
|
793
|
+
<ClickPerVisitor>0</ClickPerVisitor>
|
794
|
+
</SecondaryFrequency>
|
795
|
+
<HourOfDay>
|
796
|
+
<Hour>00</Hour>
|
797
|
+
<Hour>01</Hour>
|
798
|
+
<Hour>23</Hour>
|
799
|
+
</HourOfDay>
|
800
|
+
<DayOfWeek>
|
801
|
+
<Day>2</Day>
|
802
|
+
<Day>3</Day>
|
803
|
+
<Day>4</Day>
|
804
|
+
<Day>5</Day>
|
805
|
+
</DayOfWeek>
|
806
|
+
<UserTimeZone>Y</UserTimeZone>
|
807
|
+
<Sections>
|
808
|
+
<SectionId>SectionABC</SectionId>
|
809
|
+
<SectionId>SectionDEF</SectionId>
|
810
|
+
</Sections>
|
811
|
+
</Schedule>
|
812
|
+
</Campaign>
|
813
|
+
</Request>
|
814
|
+
</AdXML>
|
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><?xml version='1.0'?>
|
842
|
+
<AdXML>
|
843
|
+
<Response>
|
844
|
+
<Exception errorCode='370'><![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]]></Exception>
|
849
|
+
</Response>
|
850
|
+
</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><?xml version="1.0" encoding="UTF-8"?>
|
858
|
+
<AdXML>
|
859
|
+
<Request type="Campaign">
|
860
|
+
<Campaign action="add">
|
861
|
+
<Overview>
|
862
|
+
<Id>random_id_lolwut_wtf</Id>
|
863
|
+
<AdvertiserId>bobo</AdvertiserId>
|
864
|
+
<Name>LOLWUT</Name>
|
865
|
+
<AgencyId>unknown_agency</AgencyId>
|
866
|
+
<Description></Description>
|
867
|
+
<CampaignManager>lol</CampaignManager>
|
868
|
+
<ProductId>default-product</ProductId>
|
869
|
+
<InternalQuickReport></InternalQuickReport>
|
870
|
+
<ExternalQuickReport></ExternalQuickReport>
|
871
|
+
</Overview>
|
872
|
+
<Schedule>
|
873
|
+
<Impressions>999</Impressions>
|
874
|
+
<Clicks>0</Clicks>
|
875
|
+
<Uniques>0</Uniques>
|
876
|
+
<Weight>10</Weight>
|
877
|
+
<PriorityLevel>1</PriorityLevel>
|
878
|
+
<Completion>E</Completion>
|
879
|
+
<StartDate>2005-12-01</StartDate>
|
880
|
+
<EndDate>2040-12-01</EndDate>
|
881
|
+
<Reach>O</Reach>
|
882
|
+
<DailyImp>99</DailyImp>
|
883
|
+
<DailyClicks>9</DailyClicks>
|
884
|
+
<DailyUniq>1</DailyUniq>
|
885
|
+
<SmoothOrAsap>S</SmoothOrAsap>
|
886
|
+
<ImpOverrun>2</ImpOverrun>
|
887
|
+
<CompanionPositions>
|
888
|
+
<CompanionPosition>B/T</CompanionPosition>
|
889
|
+
<CompanionPosition>BL/TL</CompanionPosition>
|
890
|
+
</CompanionPositions>
|
891
|
+
<StrictCompanions>Y</StrictCompanions>
|
892
|
+
<PrimaryFrequency>
|
893
|
+
<ImpPerVisitor>2</ImpPerVisitor>
|
894
|
+
<FreqScope>Y</FreqScope>
|
895
|
+
<ClickPerVisitor>0</ClickPerVisitor>
|
896
|
+
</PrimaryFrequency>
|
897
|
+
<SecondaryFrequency>
|
898
|
+
<ImpPerVisitor>2</ImpPerVisitor>
|
899
|
+
<FreqScope>Y</FreqScope>
|
900
|
+
</SecondaryFrequency>
|
901
|
+
<HourOfDay>
|
902
|
+
<Hour>00</Hour>
|
903
|
+
<Hour>01</Hour>
|
904
|
+
<Hour>23</Hour>
|
905
|
+
</HourOfDay>
|
906
|
+
<DayOfWeek>
|
907
|
+
<Day>2</Day>
|
908
|
+
<Day>3</Day>
|
909
|
+
<Day>4</Day>
|
910
|
+
<Day>5</Day>
|
911
|
+
</DayOfWeek>
|
912
|
+
<UserTimeZone>Y</UserTimeZone>
|
913
|
+
<Sections>
|
914
|
+
<SectionId>SectionABC</SectionId>
|
915
|
+
<SectionId>SectionDEF</SectionId>
|
916
|
+
</Sections>
|
917
|
+
</Schedule>
|
918
|
+
</Campaign>
|
919
|
+
</Request>
|
920
|
+
</AdXML>
|
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><?xml version='1.0'?>
|
948
|
+
<AdXML>
|
949
|
+
<Response>
|
950
|
+
<Exception errorCode='370'><![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]]></Exception>
|
955
|
+
</Response>
|
956
|
+
</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><?xml version="1.0" encoding="UTF-8"?>
|
964
|
+
<AdXML>
|
965
|
+
<Request type="Campaign">
|
966
|
+
<Campaign action="add">
|
967
|
+
<Overview>
|
968
|
+
<Id>random_id_lolwut_wtf</Id>
|
969
|
+
<AdvertiserId>bobo</AdvertiserId>
|
970
|
+
<Name>LOLWUT</Name>
|
971
|
+
<AgencyId>unknown_agency</AgencyId>
|
972
|
+
<Description></Description>
|
973
|
+
<CampaignManager>lol</CampaignManager>
|
974
|
+
<ProductId>default-product</ProductId>
|
975
|
+
<InternalQuickReport></InternalQuickReport>
|
976
|
+
<ExternalQuickReport></ExternalQuickReport>
|
977
|
+
</Overview>
|
978
|
+
<Schedule>
|
979
|
+
<Impressions>999</Impressions>
|
980
|
+
<Clicks>0</Clicks>
|
981
|
+
<Uniques>0</Uniques>
|
982
|
+
<Weight>10</Weight>
|
983
|
+
<PriorityLevel>1</PriorityLevel>
|
984
|
+
<Completion>E</Completion>
|
985
|
+
<StartDate>2005-12-01</StartDate>
|
986
|
+
<EndDate>2040-12-01</EndDate>
|
987
|
+
<Reach>O</Reach>
|
988
|
+
<DailyImp>99</DailyImp>
|
989
|
+
<DailyClicks>9</DailyClicks>
|
990
|
+
<DailyUniq>1</DailyUniq>
|
991
|
+
<SmoothOrAsap>S</SmoothOrAsap>
|
992
|
+
<ImpOverrun>2</ImpOverrun>
|
993
|
+
<CompanionPositions>
|
994
|
+
<CompanionPosition>B/T</CompanionPosition>
|
995
|
+
<CompanionPosition>BL/TL</CompanionPosition>
|
996
|
+
</CompanionPositions>
|
997
|
+
<StrictCompanions>Y</StrictCompanions>
|
998
|
+
<PrimaryFrequency>
|
999
|
+
<ImpPerVisitor>2</ImpPerVisitor>
|
1000
|
+
<ClickPerVisitor>0</ClickPerVisitor>
|
1001
|
+
<FreqScope>Y</FreqScope>
|
1002
|
+
</PrimaryFrequency>
|
1003
|
+
<SecondaryFrequency>
|
1004
|
+
<ImpPerVisitor>2</ImpPerVisitor>
|
1005
|
+
<FreqScope>Y</FreqScope>
|
1006
|
+
</SecondaryFrequency>
|
1007
|
+
<HourOfDay>
|
1008
|
+
<Hour>00</Hour>
|
1009
|
+
<Hour>01</Hour>
|
1010
|
+
<Hour>23</Hour>
|
1011
|
+
</HourOfDay>
|
1012
|
+
<DayOfWeek>
|
1013
|
+
<Day>2</Day>
|
1014
|
+
<Day>3</Day>
|
1015
|
+
<Day>4</Day>
|
1016
|
+
<Day>5</Day>
|
1017
|
+
</DayOfWeek>
|
1018
|
+
<UserTimeZone>Y</UserTimeZone>
|
1019
|
+
<Sections>
|
1020
|
+
<SectionId>SectionABC</SectionId>
|
1021
|
+
<SectionId>SectionDEF</SectionId>
|
1022
|
+
</Sections>
|
1023
|
+
</Schedule>
|
1024
|
+
</Campaign>
|
1025
|
+
</Request>
|
1026
|
+
</AdXML>
|
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><?xml version='1.0'?>
|
1054
|
+
<AdXML>
|
1055
|
+
|
1056
|
+
<Response>
|
1057
|
+
<Campaign>
|
1058
|
+
<Exception errorCode='500'>Y is an invalid option for FreqScope (0,1,2,3,4,5,6)</Exception>
|
1059
|
+
</Campaign>
|
1060
|
+
</Response>
|
1061
|
+
</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><?xml version="1.0" encoding="UTF-8"?>
|
1069
|
+
<AdXML>
|
1070
|
+
<Request type="Campaign">
|
1071
|
+
<Campaign action="add">
|
1072
|
+
<Overview>
|
1073
|
+
<Id>random_id_lolwut_wtf</Id>
|
1074
|
+
<AdvertiserId>bobo</AdvertiserId>
|
1075
|
+
<Name>LOLWUT</Name>
|
1076
|
+
<AgencyId>unknown_agency</AgencyId>
|
1077
|
+
<Description></Description>
|
1078
|
+
<CampaignManager>lol</CampaignManager>
|
1079
|
+
<ProductId>default-product</ProductId>
|
1080
|
+
<InternalQuickReport></InternalQuickReport>
|
1081
|
+
<ExternalQuickReport></ExternalQuickReport>
|
1082
|
+
</Overview>
|
1083
|
+
<Schedule>
|
1084
|
+
<Impressions>999</Impressions>
|
1085
|
+
<Clicks>0</Clicks>
|
1086
|
+
<Uniques>0</Uniques>
|
1087
|
+
<Weight>10</Weight>
|
1088
|
+
<PriorityLevel>1</PriorityLevel>
|
1089
|
+
<Completion>E</Completion>
|
1090
|
+
<StartDate>2005-12-01</StartDate>
|
1091
|
+
<EndDate>2040-12-01</EndDate>
|
1092
|
+
<Reach>O</Reach>
|
1093
|
+
<DailyImp>99</DailyImp>
|
1094
|
+
<DailyClicks>9</DailyClicks>
|
1095
|
+
<DailyUniq>1</DailyUniq>
|
1096
|
+
<SmoothOrAsap>S</SmoothOrAsap>
|
1097
|
+
<ImpOverrun>2</ImpOverrun>
|
1098
|
+
<CompanionPositions>
|
1099
|
+
<CompanionPosition>B/T</CompanionPosition>
|
1100
|
+
<CompanionPosition>BL/TL</CompanionPosition>
|
1101
|
+
</CompanionPositions>
|
1102
|
+
<StrictCompanions>Y</StrictCompanions>
|
1103
|
+
<PrimaryFrequency>
|
1104
|
+
<ImpPerVisitor>2</ImpPerVisitor>
|
1105
|
+
<ClickPerVisitor>0</ClickPerVisitor>
|
1106
|
+
<FreqScope>1</FreqScope>
|
1107
|
+
</PrimaryFrequency>
|
1108
|
+
<SecondaryFrequency>
|
1109
|
+
<ImpPerVisitor>2</ImpPerVisitor>
|
1110
|
+
<FreqScope>1</FreqScope>
|
1111
|
+
</SecondaryFrequency>
|
1112
|
+
<HourOfDay>
|
1113
|
+
<Hour>00</Hour>
|
1114
|
+
<Hour>01</Hour>
|
1115
|
+
<Hour>23</Hour>
|
1116
|
+
</HourOfDay>
|
1117
|
+
<DayOfWeek>
|
1118
|
+
<Day>2</Day>
|
1119
|
+
<Day>3</Day>
|
1120
|
+
<Day>4</Day>
|
1121
|
+
<Day>5</Day>
|
1122
|
+
</DayOfWeek>
|
1123
|
+
<UserTimeZone>Y</UserTimeZone>
|
1124
|
+
<Sections>
|
1125
|
+
<SectionId>SectionABC</SectionId>
|
1126
|
+
<SectionId>SectionDEF</SectionId>
|
1127
|
+
</Sections>
|
1128
|
+
</Schedule>
|
1129
|
+
</Campaign>
|
1130
|
+
</Request>
|
1131
|
+
</AdXML>
|
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><?xml version='1.0'?>
|
1159
|
+
<AdXML>
|
1160
|
+
|
1161
|
+
<Response>
|
1162
|
+
<Campaign>
|
1163
|
+
<Exception errorCode='590'>Primary and Secondary Frequency Scope must not be equivalent.</Exception>
|
1164
|
+
</Campaign>
|
1165
|
+
</Response>
|
1166
|
+
</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><?xml version="1.0" encoding="UTF-8"?>
|
1174
|
+
<AdXML>
|
1175
|
+
<Request type="Campaign">
|
1176
|
+
<Campaign action="add">
|
1177
|
+
<Overview>
|
1178
|
+
<Id>random_id_lolwut_wtf</Id>
|
1179
|
+
<AdvertiserId>bobo</AdvertiserId>
|
1180
|
+
<Name>LOLWUT</Name>
|
1181
|
+
<AgencyId>unknown_agency</AgencyId>
|
1182
|
+
<Description></Description>
|
1183
|
+
<CampaignManager>lol</CampaignManager>
|
1184
|
+
<ProductId>default-product</ProductId>
|
1185
|
+
<InternalQuickReport></InternalQuickReport>
|
1186
|
+
<ExternalQuickReport></ExternalQuickReport>
|
1187
|
+
</Overview>
|
1188
|
+
<Schedule>
|
1189
|
+
<Impressions>999</Impressions>
|
1190
|
+
<Clicks>0</Clicks>
|
1191
|
+
<Uniques>0</Uniques>
|
1192
|
+
<Weight>10</Weight>
|
1193
|
+
<PriorityLevel>1</PriorityLevel>
|
1194
|
+
<Completion>E</Completion>
|
1195
|
+
<StartDate>2005-12-01</StartDate>
|
1196
|
+
<EndDate>2040-12-01</EndDate>
|
1197
|
+
<Reach>O</Reach>
|
1198
|
+
<DailyImp>99</DailyImp>
|
1199
|
+
<DailyClicks>9</DailyClicks>
|
1200
|
+
<DailyUniq>1</DailyUniq>
|
1201
|
+
<SmoothOrAsap>S</SmoothOrAsap>
|
1202
|
+
<ImpOverrun>2</ImpOverrun>
|
1203
|
+
<CompanionPositions>
|
1204
|
+
<CompanionPosition>B/T</CompanionPosition>
|
1205
|
+
<CompanionPosition>BL/TL</CompanionPosition>
|
1206
|
+
</CompanionPositions>
|
1207
|
+
<StrictCompanions>Y</StrictCompanions>
|
1208
|
+
<PrimaryFrequency>
|
1209
|
+
<ImpPerVisitor>3</ImpPerVisitor>
|
1210
|
+
<ClickPerVisitor>0</ClickPerVisitor>
|
1211
|
+
<FreqScope>1</FreqScope>
|
1212
|
+
</PrimaryFrequency>
|
1213
|
+
<SecondaryFrequency>
|
1214
|
+
<ImpPerVisitor>3</ImpPerVisitor>
|
1215
|
+
<FreqScope>1</FreqScope>
|
1216
|
+
</SecondaryFrequency>
|
1217
|
+
<HourOfDay>
|
1218
|
+
<Hour>00</Hour>
|
1219
|
+
<Hour>01</Hour>
|
1220
|
+
<Hour>23</Hour>
|
1221
|
+
</HourOfDay>
|
1222
|
+
<DayOfWeek>
|
1223
|
+
<Day>2</Day>
|
1224
|
+
<Day>3</Day>
|
1225
|
+
<Day>4</Day>
|
1226
|
+
<Day>5</Day>
|
1227
|
+
</DayOfWeek>
|
1228
|
+
<UserTimeZone>Y</UserTimeZone>
|
1229
|
+
<Sections>
|
1230
|
+
<SectionId>SectionABC</SectionId>
|
1231
|
+
<SectionId>SectionDEF</SectionId>
|
1232
|
+
</Sections>
|
1233
|
+
</Schedule>
|
1234
|
+
</Campaign>
|
1235
|
+
</Request>
|
1236
|
+
</AdXML>
|
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><?xml version='1.0'?>
|
1264
|
+
<AdXML>
|
1265
|
+
|
1266
|
+
<Response>
|
1267
|
+
<Campaign>
|
1268
|
+
<Exception errorCode='590'>Primary and Secondary Frequency Scope must not be equivalent.</Exception>
|
1269
|
+
</Campaign>
|
1270
|
+
</Response>
|
1271
|
+
</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><?xml version="1.0" encoding="UTF-8"?>
|
1279
|
+
<AdXML>
|
1280
|
+
<Request type="Campaign">
|
1281
|
+
<Campaign action="add">
|
1282
|
+
<Overview>
|
1283
|
+
<Id>random_id_lolwut_wtf</Id>
|
1284
|
+
<AdvertiserId>bobo</AdvertiserId>
|
1285
|
+
<Name>LOLWUT</Name>
|
1286
|
+
<AgencyId>unknown_agency</AgencyId>
|
1287
|
+
<Description></Description>
|
1288
|
+
<CampaignManager>lol</CampaignManager>
|
1289
|
+
<ProductId>default-product</ProductId>
|
1290
|
+
<InternalQuickReport></InternalQuickReport>
|
1291
|
+
<ExternalQuickReport></ExternalQuickReport>
|
1292
|
+
</Overview>
|
1293
|
+
<Schedule>
|
1294
|
+
<Impressions>999</Impressions>
|
1295
|
+
<Clicks>0</Clicks>
|
1296
|
+
<Uniques>0</Uniques>
|
1297
|
+
<Weight>10</Weight>
|
1298
|
+
<PriorityLevel>1</PriorityLevel>
|
1299
|
+
<Completion>E</Completion>
|
1300
|
+
<StartDate>2005-12-01</StartDate>
|
1301
|
+
<EndDate>2040-12-01</EndDate>
|
1302
|
+
<Reach>O</Reach>
|
1303
|
+
<DailyImp>99</DailyImp>
|
1304
|
+
<DailyClicks>9</DailyClicks>
|
1305
|
+
<DailyUniq>1</DailyUniq>
|
1306
|
+
<SmoothOrAsap>S</SmoothOrAsap>
|
1307
|
+
<ImpOverrun>2</ImpOverrun>
|
1308
|
+
<CompanionPositions>
|
1309
|
+
<CompanionPosition>B/T</CompanionPosition>
|
1310
|
+
<CompanionPosition>BL/TL</CompanionPosition>
|
1311
|
+
</CompanionPositions>
|
1312
|
+
<StrictCompanions>Y</StrictCompanions>
|
1313
|
+
<PrimaryFrequency>
|
1314
|
+
<ImpPerVisitor>3</ImpPerVisitor>
|
1315
|
+
<ClickPerVisitor>0</ClickPerVisitor>
|
1316
|
+
<FreqScope>4</FreqScope>
|
1317
|
+
</PrimaryFrequency>
|
1318
|
+
<SecondaryFrequency>
|
1319
|
+
<ImpPerVisitor>3</ImpPerVisitor>
|
1320
|
+
<FreqScope>4</FreqScope>
|
1321
|
+
</SecondaryFrequency>
|
1322
|
+
<HourOfDay>
|
1323
|
+
<Hour>00</Hour>
|
1324
|
+
<Hour>01</Hour>
|
1325
|
+
<Hour>23</Hour>
|
1326
|
+
</HourOfDay>
|
1327
|
+
<DayOfWeek>
|
1328
|
+
<Day>2</Day>
|
1329
|
+
<Day>3</Day>
|
1330
|
+
<Day>4</Day>
|
1331
|
+
<Day>5</Day>
|
1332
|
+
</DayOfWeek>
|
1333
|
+
<UserTimeZone>Y</UserTimeZone>
|
1334
|
+
<Sections>
|
1335
|
+
<SectionId>SectionABC</SectionId>
|
1336
|
+
<SectionId>SectionDEF</SectionId>
|
1337
|
+
</Sections>
|
1338
|
+
</Schedule>
|
1339
|
+
</Campaign>
|
1340
|
+
</Request>
|
1341
|
+
</AdXML>
|
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><?xml version='1.0'?>
|
1369
|
+
<AdXML>
|
1370
|
+
|
1371
|
+
<Response>
|
1372
|
+
<Campaign>
|
1373
|
+
<Exception errorCode='590'>Primary and Secondary Frequency Scope must not be equivalent.</Exception>
|
1374
|
+
</Campaign>
|
1375
|
+
</Response>
|
1376
|
+
</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><?xml version="1.0" encoding="UTF-8"?>
|
1384
|
+
<AdXML>
|
1385
|
+
<Request type="Campaign">
|
1386
|
+
<Campaign action="add">
|
1387
|
+
<Overview>
|
1388
|
+
<Id>random_id_lolwut_wtf</Id>
|
1389
|
+
<AdvertiserId>bobo</AdvertiserId>
|
1390
|
+
<Name>LOLWUT</Name>
|
1391
|
+
<AgencyId>unknown_agency</AgencyId>
|
1392
|
+
<Description></Description>
|
1393
|
+
<CampaignManager>lol</CampaignManager>
|
1394
|
+
<ProductId>default-product</ProductId>
|
1395
|
+
<InternalQuickReport></InternalQuickReport>
|
1396
|
+
<ExternalQuickReport></ExternalQuickReport>
|
1397
|
+
</Overview>
|
1398
|
+
<Schedule>
|
1399
|
+
<Impressions>999</Impressions>
|
1400
|
+
<Clicks>0</Clicks>
|
1401
|
+
<Uniques>0</Uniques>
|
1402
|
+
<Weight>10</Weight>
|
1403
|
+
<PriorityLevel>1</PriorityLevel>
|
1404
|
+
<Completion>E</Completion>
|
1405
|
+
<StartDate>2005-12-01</StartDate>
|
1406
|
+
<EndDate>2040-12-01</EndDate>
|
1407
|
+
<Reach>O</Reach>
|
1408
|
+
<DailyImp>99</DailyImp>
|
1409
|
+
<DailyClicks>9</DailyClicks>
|
1410
|
+
<DailyUniq>1</DailyUniq>
|
1411
|
+
<SmoothOrAsap>S</SmoothOrAsap>
|
1412
|
+
<ImpOverrun>2</ImpOverrun>
|
1413
|
+
<CompanionPositions>
|
1414
|
+
<CompanionPosition>B/T</CompanionPosition>
|
1415
|
+
<CompanionPosition>BL/TL</CompanionPosition>
|
1416
|
+
</CompanionPositions>
|
1417
|
+
<StrictCompanions>Y</StrictCompanions>
|
1418
|
+
<PrimaryFrequency>
|
1419
|
+
<ImpPerVisitor>4</ImpPerVisitor>
|
1420
|
+
<ClickPerVisitor>0</ClickPerVisitor>
|
1421
|
+
<FreqScope>4</FreqScope>
|
1422
|
+
</PrimaryFrequency>
|
1423
|
+
<SecondaryFrequency>
|
1424
|
+
<ImpPerVisitor>4</ImpPerVisitor>
|
1425
|
+
<FreqScope>4</FreqScope>
|
1426
|
+
</SecondaryFrequency>
|
1427
|
+
<HourOfDay>
|
1428
|
+
<Hour>00</Hour>
|
1429
|
+
<Hour>01</Hour>
|
1430
|
+
<Hour>23</Hour>
|
1431
|
+
</HourOfDay>
|
1432
|
+
<DayOfWeek>
|
1433
|
+
<Day>2</Day>
|
1434
|
+
<Day>3</Day>
|
1435
|
+
<Day>4</Day>
|
1436
|
+
<Day>5</Day>
|
1437
|
+
</DayOfWeek>
|
1438
|
+
<UserTimeZone>Y</UserTimeZone>
|
1439
|
+
<Sections>
|
1440
|
+
<SectionId>SectionABC</SectionId>
|
1441
|
+
<SectionId>SectionDEF</SectionId>
|
1442
|
+
</Sections>
|
1443
|
+
</Schedule>
|
1444
|
+
</Campaign>
|
1445
|
+
</Request>
|
1446
|
+
</AdXML>
|
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><?xml version='1.0'?>
|
1474
|
+
<AdXML>
|
1475
|
+
|
1476
|
+
<Response>
|
1477
|
+
<Campaign>
|
1478
|
+
<Exception errorCode='590'>Primary and Secondary Frequency Scope must not be equivalent.</Exception>
|
1479
|
+
</Campaign>
|
1480
|
+
</Response>
|
1481
|
+
</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><?xml version="1.0" encoding="UTF-8"?>
|
1489
|
+
<AdXML>
|
1490
|
+
<Request type="Campaign">
|
1491
|
+
<Campaign action="add">
|
1492
|
+
<Overview>
|
1493
|
+
<Id>random_id_lolwut_wtf</Id>
|
1494
|
+
<AdvertiserId>bobo</AdvertiserId>
|
1495
|
+
<Name>LOLWUT</Name>
|
1496
|
+
<AgencyId>unknown_agency</AgencyId>
|
1497
|
+
<Description></Description>
|
1498
|
+
<CampaignManager>lol</CampaignManager>
|
1499
|
+
<ProductId>default-product</ProductId>
|
1500
|
+
<InternalQuickReport></InternalQuickReport>
|
1501
|
+
<ExternalQuickReport></ExternalQuickReport>
|
1502
|
+
</Overview>
|
1503
|
+
<Schedule>
|
1504
|
+
<Impressions>999</Impressions>
|
1505
|
+
<Clicks>0</Clicks>
|
1506
|
+
<Uniques>0</Uniques>
|
1507
|
+
<Weight>10</Weight>
|
1508
|
+
<PriorityLevel>1</PriorityLevel>
|
1509
|
+
<Completion>E</Completion>
|
1510
|
+
<StartDate>2005-12-01</StartDate>
|
1511
|
+
<EndDate>2040-12-01</EndDate>
|
1512
|
+
<Reach>O</Reach>
|
1513
|
+
<DailyImp>99</DailyImp>
|
1514
|
+
<DailyClicks>9</DailyClicks>
|
1515
|
+
<DailyUniq>1</DailyUniq>
|
1516
|
+
<SmoothOrAsap>S</SmoothOrAsap>
|
1517
|
+
<ImpOverrun>2</ImpOverrun>
|
1518
|
+
<CompanionPositions>
|
1519
|
+
<CompanionPosition>B/T</CompanionPosition>
|
1520
|
+
<CompanionPosition>BL/TL</CompanionPosition>
|
1521
|
+
</CompanionPositions>
|
1522
|
+
<StrictCompanions>Y</StrictCompanions>
|
1523
|
+
<HourOfDay>
|
1524
|
+
<Hour>00</Hour>
|
1525
|
+
<Hour>01</Hour>
|
1526
|
+
<Hour>23</Hour>
|
1527
|
+
</HourOfDay>
|
1528
|
+
<DayOfWeek>
|
1529
|
+
<Day>2</Day>
|
1530
|
+
<Day>3</Day>
|
1531
|
+
<Day>4</Day>
|
1532
|
+
<Day>5</Day>
|
1533
|
+
</DayOfWeek>
|
1534
|
+
<UserTimeZone>Y</UserTimeZone>
|
1535
|
+
<Sections>
|
1536
|
+
<SectionId>SectionABC</SectionId>
|
1537
|
+
<SectionId>SectionDEF</SectionId>
|
1538
|
+
</Sections>
|
1539
|
+
</Schedule>
|
1540
|
+
</Campaign>
|
1541
|
+
</Request>
|
1542
|
+
</AdXML>
|
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><?xml version='1.0'?>
|
1570
|
+
<AdXML>
|
1571
|
+
|
1572
|
+
<Response>
|
1573
|
+
<Campaign>
|
1574
|
+
<Exception errorCode='512'>Campaign ID already exists in Open AdStream.</Exception>
|
1575
|
+
</Campaign>
|
1576
|
+
</Response>
|
1577
|
+
</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><?xml version="1.0" encoding="UTF-8"?>
|
1585
|
+
<AdXML>
|
1586
|
+
<Request type="Campaign">
|
1587
|
+
<Campaign action="add">
|
1588
|
+
<Overview>
|
1589
|
+
<Id>random_id_lolwut_wtf_shit</Id>
|
1590
|
+
<AdvertiserId>bobo</AdvertiserId>
|
1591
|
+
<Name>LOLWUT</Name>
|
1592
|
+
<AgencyId>unknown_agency</AgencyId>
|
1593
|
+
<Description></Description>
|
1594
|
+
<CampaignManager>lol</CampaignManager>
|
1595
|
+
<ProductId>default-product</ProductId>
|
1596
|
+
<InternalQuickReport></InternalQuickReport>
|
1597
|
+
<ExternalQuickReport></ExternalQuickReport>
|
1598
|
+
</Overview>
|
1599
|
+
<Schedule>
|
1600
|
+
<Impressions>999</Impressions>
|
1601
|
+
<Clicks>0</Clicks>
|
1602
|
+
<Uniques>0</Uniques>
|
1603
|
+
<Weight>10</Weight>
|
1604
|
+
<PriorityLevel>1</PriorityLevel>
|
1605
|
+
<Completion>E</Completion>
|
1606
|
+
<StartDate>2005-12-01</StartDate>
|
1607
|
+
<EndDate>2040-12-01</EndDate>
|
1608
|
+
<Reach>O</Reach>
|
1609
|
+
<DailyImp>99</DailyImp>
|
1610
|
+
<DailyClicks>9</DailyClicks>
|
1611
|
+
<DailyUniq>1</DailyUniq>
|
1612
|
+
<SmoothOrAsap>S</SmoothOrAsap>
|
1613
|
+
<ImpOverrun>2</ImpOverrun>
|
1614
|
+
<CompanionPositions>
|
1615
|
+
<CompanionPosition>B/T</CompanionPosition>
|
1616
|
+
<CompanionPosition>BL/TL</CompanionPosition>
|
1617
|
+
</CompanionPositions>
|
1618
|
+
<StrictCompanions>Y</StrictCompanions>
|
1619
|
+
<HourOfDay>
|
1620
|
+
<Hour>00</Hour>
|
1621
|
+
<Hour>01</Hour>
|
1622
|
+
<Hour>23</Hour>
|
1623
|
+
</HourOfDay>
|
1624
|
+
<DayOfWeek>
|
1625
|
+
<Day>2</Day>
|
1626
|
+
<Day>3</Day>
|
1627
|
+
<Day>4</Day>
|
1628
|
+
<Day>5</Day>
|
1629
|
+
</DayOfWeek>
|
1630
|
+
<UserTimeZone>Y</UserTimeZone>
|
1631
|
+
<Sections>
|
1632
|
+
<SectionId>SectionABC</SectionId>
|
1633
|
+
<SectionId>SectionDEF</SectionId>
|
1634
|
+
</Sections>
|
1635
|
+
</Schedule>
|
1636
|
+
</Campaign>
|
1637
|
+
</Request>
|
1638
|
+
</AdXML>
|
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><?xml version='1.0'?>
|
1666
|
+
<AdXML>
|
1667
|
+
|
1668
|
+
<Response>
|
1669
|
+
<Campaign>Successfully added.</Campaign>
|
1670
|
+
</Response>
|
1671
|
+
</AdXML></result></ns1:OasXmlRequestResponse></soapenv:Body></soapenv:Envelope>
|
1672
|
+
http_version: "1.1"
|