soapy_cake 2.1.0 → 2.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop_todo.yml +16 -0
- data/Gemfile +2 -1
- data/circle.yml +2 -0
- data/lib/soapy_cake.rb +3 -0
- data/lib/soapy_cake/admin.rb +2 -2
- data/lib/soapy_cake/admin_addedit.rb +5 -50
- data/lib/soapy_cake/campaigns.rb +104 -0
- data/lib/soapy_cake/client.rb +5 -5
- data/lib/soapy_cake/helper.rb +14 -9
- data/lib/soapy_cake/modification_type.rb +45 -0
- data/lib/soapy_cake/version.rb +1 -1
- data/spec/fixtures/vcr_cassettes/SoapyCake_AdminAddedit/campaigns/edits_a_campaign.yml +18 -5
- data/spec/fixtures/vcr_cassettes/SoapyCake_Campaigns/_create/creates_campaigns.yml +60 -0
- data/spec/fixtures/vcr_cassettes/SoapyCake_Campaigns/_create/raises_an_error_if_the_creation_was_unsuccessful.yml +60 -0
- data/spec/fixtures/vcr_cassettes/SoapyCake_Campaigns/_get/gets_campaigns.yml +1205 -0
- data/spec/fixtures/vcr_cassettes/SoapyCake_Campaigns/_patch/different_pre-existing_values/does_not_change_anything_unintentionally_attribute_set_0_.yml +380 -0
- data/spec/fixtures/vcr_cassettes/SoapyCake_Campaigns/_patch/different_pre-existing_values/does_not_change_anything_unintentionally_attribute_set_1_.yml +383 -0
- data/spec/fixtures/vcr_cassettes/SoapyCake_Campaigns/_patch/updates_a_campaign.yml +454 -0
- data/spec/fixtures/vcr_cassettes/SoapyCake_Campaigns/_update/raises_an_error_if_the_update_was_unsuccessful.yml +82 -0
- data/spec/fixtures/vcr_cassettes/SoapyCake_Campaigns/_update/updates_campaigns.yml +82 -0
- data/spec/integration/soapy_cake/admin_addedit_spec.rb +0 -31
- data/spec/integration/soapy_cake/campaigns_spec.rb +175 -0
- data/spec/lib/soapy_cake/admin_spec.rb +0 -1
- data/spec/lib/soapy_cake/campaigns_spec.rb +127 -0
- data/spec/lib/soapy_cake/modification_type_spec.rb +59 -0
- data/spec/spec_helper.rb +3 -3
- metadata +27 -2
@@ -0,0 +1,380 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://cake-partner-domain.com/api/3/addedit.asmx
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: |
|
9
|
+
<?xml version="1.0"?>
|
10
|
+
<env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope" xmlns:cake="http://cakemarketing.com/api/3/">
|
11
|
+
<env:Header/>
|
12
|
+
<env:Body>
|
13
|
+
<cake:Campaign>
|
14
|
+
<cake:api_key>cake-api-key</cake:api_key>
|
15
|
+
<cake:account_status_id>1</cake:account_status_id>
|
16
|
+
<cake:expiration_date_modification_type>change</cake:expiration_date_modification_type>
|
17
|
+
<cake:currency_id>1</cake:currency_id>
|
18
|
+
<cake:use_offer_contract_payout>on</cake:use_offer_contract_payout>
|
19
|
+
<cake:payout_update_option>remove</cake:payout_update_option>
|
20
|
+
<cake:paid>on</cake:paid>
|
21
|
+
<cake:paid_redirects>on</cake:paid_redirects>
|
22
|
+
<cake:paid_upsells>on</cake:paid_upsells>
|
23
|
+
<cake:review>on</cake:review>
|
24
|
+
<cake:auto_disposition_delay_hours>0</cake:auto_disposition_delay_hours>
|
25
|
+
<cake:redirect_offer_contract_id>10337</cake:redirect_offer_contract_id>
|
26
|
+
<cake:redirect_404>on</cake:redirect_404>
|
27
|
+
<cake:clear_session_on_conversion>on</cake:clear_session_on_conversion>
|
28
|
+
<cake:postback_delay_ms>-1</cake:postback_delay_ms>
|
29
|
+
<cake:affiliate_id>9643</cake:affiliate_id>
|
30
|
+
<cake:campaign_id>23733</cake:campaign_id>
|
31
|
+
<cake:offer_id>11390</cake:offer_id>
|
32
|
+
<cake:display_link_type_id>1</cake:display_link_type_id>
|
33
|
+
<cake:expiration_date>2016-11-09T01:00:00</cake:expiration_date>
|
34
|
+
<cake:media_type_id>1</cake:media_type_id>
|
35
|
+
<cake:offer_contract_id>10338</cake:offer_contract_id>
|
36
|
+
<cake:payout>0</cake:payout>
|
37
|
+
<cake:pixel_html/>
|
38
|
+
<cake:postback_url/>
|
39
|
+
<cake:redirect_domain>trk_ad2games.cakemarketing.net</cake:redirect_domain>
|
40
|
+
<cake:test_link/>
|
41
|
+
<cake:unique_key_hash>none</cake:unique_key_hash>
|
42
|
+
<cake:third_party_name/>
|
43
|
+
</cake:Campaign>
|
44
|
+
</env:Body>
|
45
|
+
</env:Envelope>
|
46
|
+
headers:
|
47
|
+
Content-Type:
|
48
|
+
- application/soap+xml;charset=UTF-8
|
49
|
+
Accept-Encoding:
|
50
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
51
|
+
Accept:
|
52
|
+
- "*/*"
|
53
|
+
User-Agent:
|
54
|
+
- Ruby
|
55
|
+
response:
|
56
|
+
status:
|
57
|
+
code: 200
|
58
|
+
message: OK
|
59
|
+
headers:
|
60
|
+
Cache-Control:
|
61
|
+
- private, max-age=0
|
62
|
+
Content-Type:
|
63
|
+
- application/soap+xml; charset=utf-8
|
64
|
+
Server:
|
65
|
+
- Microsoft-IIS/8.5
|
66
|
+
X-Aspnet-Version:
|
67
|
+
- 4.0.30319
|
68
|
+
X-Powered-By:
|
69
|
+
- ASP.NET
|
70
|
+
Date:
|
71
|
+
- Fri, 11 Nov 2016 15:57:27 GMT
|
72
|
+
Content-Length:
|
73
|
+
- '634'
|
74
|
+
body:
|
75
|
+
encoding: UTF-8
|
76
|
+
string: <?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope"
|
77
|
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><CampaignResponse
|
78
|
+
xmlns="http://cakemarketing.com/api/3/"><CampaignResult><success>true</success><message>Campaign
|
79
|
+
Updated</message><success_info><campaign_id>23733</campaign_id><affiliate_id>9643</affiliate_id><offer_id>11390</offer_id><offer_contract_id>10338</offer_contract_id><media_type_id>1</media_type_id><original>false</original></success_info></CampaignResult></CampaignResponse></soap:Body></soap:Envelope>
|
80
|
+
http_version:
|
81
|
+
recorded_at: Fri, 11 Nov 2016 15:57:50 GMT
|
82
|
+
- request:
|
83
|
+
method: post
|
84
|
+
uri: https://cake-partner-domain.com/api/6/export.asmx
|
85
|
+
body:
|
86
|
+
encoding: UTF-8
|
87
|
+
string: |
|
88
|
+
<?xml version="1.0"?>
|
89
|
+
<env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope" xmlns:cake="http://cakemarketing.com/api/6/">
|
90
|
+
<env:Header/>
|
91
|
+
<env:Body>
|
92
|
+
<cake:Campaigns>
|
93
|
+
<cake:api_key>cake-api-key</cake:api_key>
|
94
|
+
<cake:campaign_id>23733</cake:campaign_id>
|
95
|
+
</cake:Campaigns>
|
96
|
+
</env:Body>
|
97
|
+
</env:Envelope>
|
98
|
+
headers:
|
99
|
+
Content-Type:
|
100
|
+
- application/soap+xml;charset=UTF-8
|
101
|
+
Accept-Encoding:
|
102
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
103
|
+
Accept:
|
104
|
+
- "*/*"
|
105
|
+
User-Agent:
|
106
|
+
- Ruby
|
107
|
+
response:
|
108
|
+
status:
|
109
|
+
code: 200
|
110
|
+
message: OK
|
111
|
+
headers:
|
112
|
+
Cache-Control:
|
113
|
+
- private, max-age=0
|
114
|
+
Content-Type:
|
115
|
+
- application/soap+xml; charset=utf-8
|
116
|
+
Server:
|
117
|
+
- Microsoft-IIS/8.5
|
118
|
+
X-Aspnet-Version:
|
119
|
+
- 4.0.30319
|
120
|
+
X-Powered-By:
|
121
|
+
- ASP.NET
|
122
|
+
Date:
|
123
|
+
- Fri, 11 Nov 2016 15:57:27 GMT
|
124
|
+
Content-Length:
|
125
|
+
- '4147'
|
126
|
+
body:
|
127
|
+
encoding: UTF-8
|
128
|
+
string: <?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope"
|
129
|
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><CampaignsResponse
|
130
|
+
xmlns="http://cakemarketing.com/api/6/"><CampaignsResult><success>true</success><row_count>1</row_count><campaigns><campaign><campaign_id>23733</campaign_id><third_party_name>bar</third_party_name><campaign_type><campaign_type_id
|
131
|
+
xmlns="API:id_name_store">1</campaign_type_id><campaign_type_name xmlns="API:id_name_store">Standard</campaign_type_name></campaign_type><affiliate><affiliate_id
|
132
|
+
xmlns="API:id_name_store">9643</affiliate_id><affiliate_name xmlns="API:id_name_store">ad2games</affiliate_name></affiliate><offer><offer_id
|
133
|
+
xmlns="API:id_name_store">11390</offer_id><offer_name xmlns="API:id_name_store">Helge's
|
134
|
+
Awesome Offer (DE CPO)</offer_name></offer><offer_contract><offer_contract_id>10338</offer_contract_id><offer_contract_name>Direct</offer_contract_name><price_format><price_format_id
|
135
|
+
xmlns="API:id_name_store">1</price_format_id><price_format_name xmlns="API:id_name_store">CPA</price_format_name></price_format></offer_contract><original>false</original><exceptions><allowed_sub_affiliates
|
136
|
+
/><allowed_creatives /></exceptions><account_status><account_status_id xmlns="API:id_name_store">1</account_status_id><account_status_name
|
137
|
+
xmlns="API:id_name_store">Active</account_status_name></account_status><payout><is_percentage>false</is_percentage><amount>1.0000</amount><formatted_amount>$1.00</formatted_amount></payout><currency><currency_id
|
138
|
+
xmlns="API:id_name_store">1</currency_id><currency_symbol xmlns="API:id_name_store">$</currency_symbol><currency_name
|
139
|
+
xmlns="API:id_name_store">US Dollar</currency_name><currency_abbr xmlns="API:id_name_store">USD</currency_abbr></currency><media_type><media_type_id
|
140
|
+
xmlns="API:id_name_store">1</media_type_id><media_type_name xmlns="API:id_name_store">YouTube_Twitch</media_type_name></media_type><deal_flow><date_contacted
|
141
|
+
xsi:nil="true" /><date_io_sent xsi:nil="true" /><date_io_signed xsi:nil="true"
|
142
|
+
/><date_creative_sent xsi:nil="true" /><date_pixel_placed>2016-11-10T10:40:41.057</date_pixel_placed></deal_flow><paid>true</paid><paid_redirects>true</paid_redirects><disable_prepop_appending>false</disable_prepop_appending><suppression_amount
|
143
|
+
xsi:nil="true" /><redirect_domain>trk_ad2games.cakemarketing.net</redirect_domain><click_cap><limit
|
144
|
+
xsi:nil="true" /><cap_interval><cap_interval_id xmlns="API:id_name_store">0</cap_interval_id><cap_interval_name
|
145
|
+
xmlns="API:id_name_store">None</cap_interval_name></cap_interval><start_date
|
146
|
+
xsi:nil="true" /><review_no_redirect>false</review_no_redirect></click_cap><conversion_cap><limit
|
147
|
+
xsi:nil="true" /><cap_interval><cap_interval_id xmlns="API:id_name_store">0</cap_interval_id><cap_interval_name
|
148
|
+
xmlns="API:id_name_store">None</cap_interval_name></cap_interval><start_date
|
149
|
+
xsi:nil="true" /><review_no_redirect>false</review_no_redirect></conversion_cap><pixel_info><pixel_status>Approved</pixel_status><pixel_html>pixelpixelpixel</pixel_html><hash_type><hash_type_id
|
150
|
+
xmlns="API:id_name_store">0</hash_type_id><hash_type_name xmlns="API:id_name_store">None</hash_type_name></hash_type><postback_url>https://example.com/postback</postback_url><postback_delay_ms>100</postback_delay_ms></pixel_info><upsell_info><disable_upsells>false</disable_upsells><paid_upsells>true</paid_upsells><paid_upsells_same_session_only>false</paid_upsells_same_session_only><clear_session_on_conversion>true</clear_session_on_conversion></upsell_info><test_link>https://example.com/test</test_link><redirect_offer><offer_contract_id>10337</offer_contract_id><offer_contract_name>Direct</offer_contract_name><price_format><price_format_id
|
151
|
+
xmlns="API:id_name_store">1</price_format_id><price_format_name xmlns="API:id_name_store">CPA</price_format_name></price_format></redirect_offer><redirect_404>true</redirect_404><date_created>2016-11-08T16:49:09.017</date_created><expiration_date>2016-11-09T01:00:00</expiration_date><notes
|
152
|
+
/></campaign></campaigns></CampaignsResult></CampaignsResponse></soap:Body></soap:Envelope>
|
153
|
+
http_version:
|
154
|
+
recorded_at: Fri, 11 Nov 2016 15:57:51 GMT
|
155
|
+
- request:
|
156
|
+
method: post
|
157
|
+
uri: https://cake-partner-domain.com/api/6/export.asmx
|
158
|
+
body:
|
159
|
+
encoding: UTF-8
|
160
|
+
string: |
|
161
|
+
<?xml version="1.0"?>
|
162
|
+
<env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope" xmlns:cake="http://cakemarketing.com/api/6/">
|
163
|
+
<env:Header/>
|
164
|
+
<env:Body>
|
165
|
+
<cake:Campaigns>
|
166
|
+
<cake:api_key>cake-api-key</cake:api_key>
|
167
|
+
<cake:campaign_id>23733</cake:campaign_id>
|
168
|
+
</cake:Campaigns>
|
169
|
+
</env:Body>
|
170
|
+
</env:Envelope>
|
171
|
+
headers:
|
172
|
+
Content-Type:
|
173
|
+
- application/soap+xml;charset=UTF-8
|
174
|
+
Accept-Encoding:
|
175
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
176
|
+
Accept:
|
177
|
+
- "*/*"
|
178
|
+
User-Agent:
|
179
|
+
- Ruby
|
180
|
+
response:
|
181
|
+
status:
|
182
|
+
code: 200
|
183
|
+
message: OK
|
184
|
+
headers:
|
185
|
+
Cache-Control:
|
186
|
+
- private, max-age=0
|
187
|
+
Content-Type:
|
188
|
+
- application/soap+xml; charset=utf-8
|
189
|
+
Server:
|
190
|
+
- Microsoft-IIS/8.5
|
191
|
+
X-Aspnet-Version:
|
192
|
+
- 4.0.30319
|
193
|
+
X-Powered-By:
|
194
|
+
- ASP.NET
|
195
|
+
Date:
|
196
|
+
- Fri, 11 Nov 2016 15:57:28 GMT
|
197
|
+
Content-Length:
|
198
|
+
- '4147'
|
199
|
+
body:
|
200
|
+
encoding: UTF-8
|
201
|
+
string: <?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope"
|
202
|
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><CampaignsResponse
|
203
|
+
xmlns="http://cakemarketing.com/api/6/"><CampaignsResult><success>true</success><row_count>1</row_count><campaigns><campaign><campaign_id>23733</campaign_id><third_party_name>bar</third_party_name><campaign_type><campaign_type_id
|
204
|
+
xmlns="API:id_name_store">1</campaign_type_id><campaign_type_name xmlns="API:id_name_store">Standard</campaign_type_name></campaign_type><affiliate><affiliate_id
|
205
|
+
xmlns="API:id_name_store">9643</affiliate_id><affiliate_name xmlns="API:id_name_store">ad2games</affiliate_name></affiliate><offer><offer_id
|
206
|
+
xmlns="API:id_name_store">11390</offer_id><offer_name xmlns="API:id_name_store">Helge's
|
207
|
+
Awesome Offer (DE CPO)</offer_name></offer><offer_contract><offer_contract_id>10338</offer_contract_id><offer_contract_name>Direct</offer_contract_name><price_format><price_format_id
|
208
|
+
xmlns="API:id_name_store">1</price_format_id><price_format_name xmlns="API:id_name_store">CPA</price_format_name></price_format></offer_contract><original>false</original><exceptions><allowed_sub_affiliates
|
209
|
+
/><allowed_creatives /></exceptions><account_status><account_status_id xmlns="API:id_name_store">1</account_status_id><account_status_name
|
210
|
+
xmlns="API:id_name_store">Active</account_status_name></account_status><payout><is_percentage>false</is_percentage><amount>1.0000</amount><formatted_amount>$1.00</formatted_amount></payout><currency><currency_id
|
211
|
+
xmlns="API:id_name_store">1</currency_id><currency_symbol xmlns="API:id_name_store">$</currency_symbol><currency_name
|
212
|
+
xmlns="API:id_name_store">US Dollar</currency_name><currency_abbr xmlns="API:id_name_store">USD</currency_abbr></currency><media_type><media_type_id
|
213
|
+
xmlns="API:id_name_store">1</media_type_id><media_type_name xmlns="API:id_name_store">YouTube_Twitch</media_type_name></media_type><deal_flow><date_contacted
|
214
|
+
xsi:nil="true" /><date_io_sent xsi:nil="true" /><date_io_signed xsi:nil="true"
|
215
|
+
/><date_creative_sent xsi:nil="true" /><date_pixel_placed>2016-11-10T10:40:41.057</date_pixel_placed></deal_flow><paid>true</paid><paid_redirects>true</paid_redirects><disable_prepop_appending>false</disable_prepop_appending><suppression_amount
|
216
|
+
xsi:nil="true" /><redirect_domain>trk_ad2games.cakemarketing.net</redirect_domain><click_cap><limit
|
217
|
+
xsi:nil="true" /><cap_interval><cap_interval_id xmlns="API:id_name_store">0</cap_interval_id><cap_interval_name
|
218
|
+
xmlns="API:id_name_store">None</cap_interval_name></cap_interval><start_date
|
219
|
+
xsi:nil="true" /><review_no_redirect>false</review_no_redirect></click_cap><conversion_cap><limit
|
220
|
+
xsi:nil="true" /><cap_interval><cap_interval_id xmlns="API:id_name_store">0</cap_interval_id><cap_interval_name
|
221
|
+
xmlns="API:id_name_store">None</cap_interval_name></cap_interval><start_date
|
222
|
+
xsi:nil="true" /><review_no_redirect>false</review_no_redirect></conversion_cap><pixel_info><pixel_status>Approved</pixel_status><pixel_html>pixelpixelpixel</pixel_html><hash_type><hash_type_id
|
223
|
+
xmlns="API:id_name_store">0</hash_type_id><hash_type_name xmlns="API:id_name_store">None</hash_type_name></hash_type><postback_url>https://example.com/postback</postback_url><postback_delay_ms>100</postback_delay_ms></pixel_info><upsell_info><disable_upsells>false</disable_upsells><paid_upsells>true</paid_upsells><paid_upsells_same_session_only>false</paid_upsells_same_session_only><clear_session_on_conversion>true</clear_session_on_conversion></upsell_info><test_link>https://example.com/test</test_link><redirect_offer><offer_contract_id>10337</offer_contract_id><offer_contract_name>Direct</offer_contract_name><price_format><price_format_id
|
224
|
+
xmlns="API:id_name_store">1</price_format_id><price_format_name xmlns="API:id_name_store">CPA</price_format_name></price_format></redirect_offer><redirect_404>true</redirect_404><date_created>2016-11-08T16:49:09.017</date_created><expiration_date>2016-11-09T01:00:00</expiration_date><notes
|
225
|
+
/></campaign></campaigns></CampaignsResult></CampaignsResponse></soap:Body></soap:Envelope>
|
226
|
+
http_version:
|
227
|
+
recorded_at: Fri, 11 Nov 2016 15:57:51 GMT
|
228
|
+
- request:
|
229
|
+
method: post
|
230
|
+
uri: https://cake-partner-domain.com/api/3/addedit.asmx
|
231
|
+
body:
|
232
|
+
encoding: UTF-8
|
233
|
+
string: |
|
234
|
+
<?xml version="1.0"?>
|
235
|
+
<env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope" xmlns:cake="http://cakemarketing.com/api/3/">
|
236
|
+
<env:Header/>
|
237
|
+
<env:Body>
|
238
|
+
<cake:Campaign>
|
239
|
+
<cake:api_key>cake-api-key</cake:api_key>
|
240
|
+
<cake:account_status_id>0</cake:account_status_id>
|
241
|
+
<cake:expiration_date_modification_type>do_not_change</cake:expiration_date_modification_type>
|
242
|
+
<cake:currency_id>0</cake:currency_id>
|
243
|
+
<cake:use_offer_contract_payout>no_change</cake:use_offer_contract_payout>
|
244
|
+
<cake:payout_update_option>do_not_change</cake:payout_update_option>
|
245
|
+
<cake:paid>no_change</cake:paid>
|
246
|
+
<cake:paid_redirects>no_change</cake:paid_redirects>
|
247
|
+
<cake:paid_upsells>no_change</cake:paid_upsells>
|
248
|
+
<cake:review>no_change</cake:review>
|
249
|
+
<cake:auto_disposition_delay_hours>0</cake:auto_disposition_delay_hours>
|
250
|
+
<cake:redirect_offer_contract_id>0</cake:redirect_offer_contract_id>
|
251
|
+
<cake:redirect_404>no_change</cake:redirect_404>
|
252
|
+
<cake:clear_session_on_conversion>no_change</cake:clear_session_on_conversion>
|
253
|
+
<cake:postback_delay_ms>-1</cake:postback_delay_ms>
|
254
|
+
<cake:affiliate_id>9643</cake:affiliate_id>
|
255
|
+
<cake:display_link_type_id>1</cake:display_link_type_id>
|
256
|
+
<cake:media_type_id>1</cake:media_type_id>
|
257
|
+
<cake:offer_contract_id>10338</cake:offer_contract_id>
|
258
|
+
<cake:offer_id>11390</cake:offer_id>
|
259
|
+
<cake:payout>1.0000</cake:payout>
|
260
|
+
<cake:pixel_html>pixelpixelpixel</cake:pixel_html>
|
261
|
+
<cake:postback_url>https://example.com/postback</cake:postback_url>
|
262
|
+
<cake:redirect_domain>trk_ad2games.cakemarketing.net</cake:redirect_domain>
|
263
|
+
<cake:test_link>https://example.com/test</cake:test_link>
|
264
|
+
<cake:unique_key_hash>0</cake:unique_key_hash>
|
265
|
+
<cake:third_party_name>bar</cake:third_party_name>
|
266
|
+
<cake:campaign_id>23733</cake:campaign_id>
|
267
|
+
<cake:expiration_date>1970-01-01T01:00:00</cake:expiration_date>
|
268
|
+
</cake:Campaign>
|
269
|
+
</env:Body>
|
270
|
+
</env:Envelope>
|
271
|
+
headers:
|
272
|
+
Content-Type:
|
273
|
+
- application/soap+xml;charset=UTF-8
|
274
|
+
Accept-Encoding:
|
275
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
276
|
+
Accept:
|
277
|
+
- "*/*"
|
278
|
+
User-Agent:
|
279
|
+
- Ruby
|
280
|
+
response:
|
281
|
+
status:
|
282
|
+
code: 200
|
283
|
+
message: OK
|
284
|
+
headers:
|
285
|
+
Cache-Control:
|
286
|
+
- private, max-age=0
|
287
|
+
Content-Type:
|
288
|
+
- application/soap+xml; charset=utf-8
|
289
|
+
Server:
|
290
|
+
- Microsoft-IIS/8.5
|
291
|
+
X-Aspnet-Version:
|
292
|
+
- 4.0.30319
|
293
|
+
X-Powered-By:
|
294
|
+
- ASP.NET
|
295
|
+
Date:
|
296
|
+
- Fri, 11 Nov 2016 15:57:28 GMT
|
297
|
+
Content-Length:
|
298
|
+
- '634'
|
299
|
+
body:
|
300
|
+
encoding: UTF-8
|
301
|
+
string: <?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope"
|
302
|
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><CampaignResponse
|
303
|
+
xmlns="http://cakemarketing.com/api/3/"><CampaignResult><success>true</success><message>Campaign
|
304
|
+
Updated</message><success_info><campaign_id>23733</campaign_id><affiliate_id>9643</affiliate_id><offer_id>11390</offer_id><offer_contract_id>10338</offer_contract_id><media_type_id>1</media_type_id><original>false</original></success_info></CampaignResult></CampaignResponse></soap:Body></soap:Envelope>
|
305
|
+
http_version:
|
306
|
+
recorded_at: Fri, 11 Nov 2016 15:57:51 GMT
|
307
|
+
- request:
|
308
|
+
method: post
|
309
|
+
uri: https://cake-partner-domain.com/api/6/export.asmx
|
310
|
+
body:
|
311
|
+
encoding: UTF-8
|
312
|
+
string: |
|
313
|
+
<?xml version="1.0"?>
|
314
|
+
<env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope" xmlns:cake="http://cakemarketing.com/api/6/">
|
315
|
+
<env:Header/>
|
316
|
+
<env:Body>
|
317
|
+
<cake:Campaigns>
|
318
|
+
<cake:api_key>cake-api-key</cake:api_key>
|
319
|
+
<cake:campaign_id>23733</cake:campaign_id>
|
320
|
+
</cake:Campaigns>
|
321
|
+
</env:Body>
|
322
|
+
</env:Envelope>
|
323
|
+
headers:
|
324
|
+
Content-Type:
|
325
|
+
- application/soap+xml;charset=UTF-8
|
326
|
+
Accept-Encoding:
|
327
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
328
|
+
Accept:
|
329
|
+
- "*/*"
|
330
|
+
User-Agent:
|
331
|
+
- Ruby
|
332
|
+
response:
|
333
|
+
status:
|
334
|
+
code: 200
|
335
|
+
message: OK
|
336
|
+
headers:
|
337
|
+
Cache-Control:
|
338
|
+
- private, max-age=0
|
339
|
+
Content-Type:
|
340
|
+
- application/soap+xml; charset=utf-8
|
341
|
+
Server:
|
342
|
+
- Microsoft-IIS/8.5
|
343
|
+
X-Aspnet-Version:
|
344
|
+
- 4.0.30319
|
345
|
+
X-Powered-By:
|
346
|
+
- ASP.NET
|
347
|
+
Date:
|
348
|
+
- Fri, 11 Nov 2016 15:57:29 GMT
|
349
|
+
Content-Length:
|
350
|
+
- '4147'
|
351
|
+
body:
|
352
|
+
encoding: UTF-8
|
353
|
+
string: <?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope"
|
354
|
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><CampaignsResponse
|
355
|
+
xmlns="http://cakemarketing.com/api/6/"><CampaignsResult><success>true</success><row_count>1</row_count><campaigns><campaign><campaign_id>23733</campaign_id><third_party_name>bar</third_party_name><campaign_type><campaign_type_id
|
356
|
+
xmlns="API:id_name_store">1</campaign_type_id><campaign_type_name xmlns="API:id_name_store">Standard</campaign_type_name></campaign_type><affiliate><affiliate_id
|
357
|
+
xmlns="API:id_name_store">9643</affiliate_id><affiliate_name xmlns="API:id_name_store">ad2games</affiliate_name></affiliate><offer><offer_id
|
358
|
+
xmlns="API:id_name_store">11390</offer_id><offer_name xmlns="API:id_name_store">Helge's
|
359
|
+
Awesome Offer (DE CPO)</offer_name></offer><offer_contract><offer_contract_id>10338</offer_contract_id><offer_contract_name>Direct</offer_contract_name><price_format><price_format_id
|
360
|
+
xmlns="API:id_name_store">1</price_format_id><price_format_name xmlns="API:id_name_store">CPA</price_format_name></price_format></offer_contract><original>false</original><exceptions><allowed_sub_affiliates
|
361
|
+
/><allowed_creatives /></exceptions><account_status><account_status_id xmlns="API:id_name_store">1</account_status_id><account_status_name
|
362
|
+
xmlns="API:id_name_store">Active</account_status_name></account_status><payout><is_percentage>false</is_percentage><amount>1.0000</amount><formatted_amount>$1.00</formatted_amount></payout><currency><currency_id
|
363
|
+
xmlns="API:id_name_store">1</currency_id><currency_symbol xmlns="API:id_name_store">$</currency_symbol><currency_name
|
364
|
+
xmlns="API:id_name_store">US Dollar</currency_name><currency_abbr xmlns="API:id_name_store">USD</currency_abbr></currency><media_type><media_type_id
|
365
|
+
xmlns="API:id_name_store">1</media_type_id><media_type_name xmlns="API:id_name_store">YouTube_Twitch</media_type_name></media_type><deal_flow><date_contacted
|
366
|
+
xsi:nil="true" /><date_io_sent xsi:nil="true" /><date_io_signed xsi:nil="true"
|
367
|
+
/><date_creative_sent xsi:nil="true" /><date_pixel_placed>2016-11-10T10:40:41.057</date_pixel_placed></deal_flow><paid>true</paid><paid_redirects>true</paid_redirects><disable_prepop_appending>false</disable_prepop_appending><suppression_amount
|
368
|
+
xsi:nil="true" /><redirect_domain>trk_ad2games.cakemarketing.net</redirect_domain><click_cap><limit
|
369
|
+
xsi:nil="true" /><cap_interval><cap_interval_id xmlns="API:id_name_store">0</cap_interval_id><cap_interval_name
|
370
|
+
xmlns="API:id_name_store">None</cap_interval_name></cap_interval><start_date
|
371
|
+
xsi:nil="true" /><review_no_redirect>false</review_no_redirect></click_cap><conversion_cap><limit
|
372
|
+
xsi:nil="true" /><cap_interval><cap_interval_id xmlns="API:id_name_store">0</cap_interval_id><cap_interval_name
|
373
|
+
xmlns="API:id_name_store">None</cap_interval_name></cap_interval><start_date
|
374
|
+
xsi:nil="true" /><review_no_redirect>false</review_no_redirect></conversion_cap><pixel_info><pixel_status>Approved</pixel_status><pixel_html>pixelpixelpixel</pixel_html><hash_type><hash_type_id
|
375
|
+
xmlns="API:id_name_store">0</hash_type_id><hash_type_name xmlns="API:id_name_store">None</hash_type_name></hash_type><postback_url>https://example.com/postback</postback_url><postback_delay_ms>100</postback_delay_ms></pixel_info><upsell_info><disable_upsells>false</disable_upsells><paid_upsells>true</paid_upsells><paid_upsells_same_session_only>false</paid_upsells_same_session_only><clear_session_on_conversion>true</clear_session_on_conversion></upsell_info><test_link>https://example.com/test</test_link><redirect_offer><offer_contract_id>10337</offer_contract_id><offer_contract_name>Direct</offer_contract_name><price_format><price_format_id
|
376
|
+
xmlns="API:id_name_store">1</price_format_id><price_format_name xmlns="API:id_name_store">CPA</price_format_name></price_format></redirect_offer><redirect_404>true</redirect_404><date_created>2016-11-08T16:49:09.017</date_created><expiration_date>2016-11-09T01:00:00</expiration_date><notes
|
377
|
+
/></campaign></campaigns></CampaignsResult></CampaignsResponse></soap:Body></soap:Envelope>
|
378
|
+
http_version:
|
379
|
+
recorded_at: Fri, 11 Nov 2016 15:57:52 GMT
|
380
|
+
recorded_with: VCR 3.0.3
|
@@ -0,0 +1,383 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://cake-partner-domain.com/api/3/addedit.asmx
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: |
|
9
|
+
<?xml version="1.0"?>
|
10
|
+
<env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope" xmlns:cake="http://cakemarketing.com/api/3/">
|
11
|
+
<env:Header/>
|
12
|
+
<env:Body>
|
13
|
+
<cake:Campaign>
|
14
|
+
<cake:api_key>cake-api-key</cake:api_key>
|
15
|
+
<cake:account_status_id>2</cake:account_status_id>
|
16
|
+
<cake:expiration_date_modification_type>remove</cake:expiration_date_modification_type>
|
17
|
+
<cake:currency_id>2</cake:currency_id>
|
18
|
+
<cake:use_offer_contract_payout>off</cake:use_offer_contract_payout>
|
19
|
+
<cake:payout_update_option>change</cake:payout_update_option>
|
20
|
+
<cake:paid>off</cake:paid>
|
21
|
+
<cake:paid_redirects>off</cake:paid_redirects>
|
22
|
+
<cake:paid_upsells>off</cake:paid_upsells>
|
23
|
+
<cake:review>off</cake:review>
|
24
|
+
<cake:auto_disposition_delay_hours>1</cake:auto_disposition_delay_hours>
|
25
|
+
<cake:redirect_offer_contract_id>10339</cake:redirect_offer_contract_id>
|
26
|
+
<cake:redirect_404>off</cake:redirect_404>
|
27
|
+
<cake:clear_session_on_conversion>off</cake:clear_session_on_conversion>
|
28
|
+
<cake:postback_delay_ms>100</cake:postback_delay_ms>
|
29
|
+
<cake:affiliate_id>9643</cake:affiliate_id>
|
30
|
+
<cake:campaign_id>23733</cake:campaign_id>
|
31
|
+
<cake:offer_id>11390</cake:offer_id>
|
32
|
+
<cake:display_link_type_id>1</cake:display_link_type_id>
|
33
|
+
<cake:expiration_date>1970-01-01T01:00:00</cake:expiration_date>
|
34
|
+
<cake:media_type_id>2</cake:media_type_id>
|
35
|
+
<cake:offer_contract_id>10342</cake:offer_contract_id>
|
36
|
+
<cake:payout>1</cake:payout>
|
37
|
+
<cake:pixel_html>pixelpixelpixel</cake:pixel_html>
|
38
|
+
<cake:postback_url>https://example.com/postback</cake:postback_url>
|
39
|
+
<cake:redirect_domain>trk_ad2games.cakemarketing.net</cake:redirect_domain>
|
40
|
+
<cake:test_link>https://example.com/test</cake:test_link>
|
41
|
+
<cake:unique_key_hash>sha1</cake:unique_key_hash>
|
42
|
+
<cake:third_party_name>Best Campaign Ever</cake:third_party_name>
|
43
|
+
</cake:Campaign>
|
44
|
+
</env:Body>
|
45
|
+
</env:Envelope>
|
46
|
+
headers:
|
47
|
+
Content-Type:
|
48
|
+
- application/soap+xml;charset=UTF-8
|
49
|
+
Accept-Encoding:
|
50
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
51
|
+
Accept:
|
52
|
+
- "*/*"
|
53
|
+
User-Agent:
|
54
|
+
- Ruby
|
55
|
+
response:
|
56
|
+
status:
|
57
|
+
code: 200
|
58
|
+
message: OK
|
59
|
+
headers:
|
60
|
+
Cache-Control:
|
61
|
+
- private, max-age=0
|
62
|
+
Content-Type:
|
63
|
+
- application/soap+xml; charset=utf-8
|
64
|
+
Server:
|
65
|
+
- Microsoft-IIS/8.5
|
66
|
+
X-Aspnet-Version:
|
67
|
+
- 4.0.30319
|
68
|
+
X-Powered-By:
|
69
|
+
- ASP.NET
|
70
|
+
Date:
|
71
|
+
- Fri, 11 Nov 2016 15:57:29 GMT
|
72
|
+
Content-Length:
|
73
|
+
- '634'
|
74
|
+
body:
|
75
|
+
encoding: UTF-8
|
76
|
+
string: <?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope"
|
77
|
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><CampaignResponse
|
78
|
+
xmlns="http://cakemarketing.com/api/3/"><CampaignResult><success>true</success><message>Campaign
|
79
|
+
Updated</message><success_info><campaign_id>23733</campaign_id><affiliate_id>9643</affiliate_id><offer_id>11390</offer_id><offer_contract_id>10342</offer_contract_id><media_type_id>2</media_type_id><original>false</original></success_info></CampaignResult></CampaignResponse></soap:Body></soap:Envelope>
|
80
|
+
http_version:
|
81
|
+
recorded_at: Fri, 11 Nov 2016 15:57:52 GMT
|
82
|
+
- request:
|
83
|
+
method: post
|
84
|
+
uri: https://cake-partner-domain.com/api/6/export.asmx
|
85
|
+
body:
|
86
|
+
encoding: UTF-8
|
87
|
+
string: |
|
88
|
+
<?xml version="1.0"?>
|
89
|
+
<env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope" xmlns:cake="http://cakemarketing.com/api/6/">
|
90
|
+
<env:Header/>
|
91
|
+
<env:Body>
|
92
|
+
<cake:Campaigns>
|
93
|
+
<cake:api_key>cake-api-key</cake:api_key>
|
94
|
+
<cake:campaign_id>23733</cake:campaign_id>
|
95
|
+
</cake:Campaigns>
|
96
|
+
</env:Body>
|
97
|
+
</env:Envelope>
|
98
|
+
headers:
|
99
|
+
Content-Type:
|
100
|
+
- application/soap+xml;charset=UTF-8
|
101
|
+
Accept-Encoding:
|
102
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
103
|
+
Accept:
|
104
|
+
- "*/*"
|
105
|
+
User-Agent:
|
106
|
+
- Ruby
|
107
|
+
response:
|
108
|
+
status:
|
109
|
+
code: 200
|
110
|
+
message: OK
|
111
|
+
headers:
|
112
|
+
Cache-Control:
|
113
|
+
- private, max-age=0
|
114
|
+
Content-Type:
|
115
|
+
- application/soap+xml; charset=utf-8
|
116
|
+
Server:
|
117
|
+
- Microsoft-IIS/8.5
|
118
|
+
X-Aspnet-Version:
|
119
|
+
- 4.0.30319
|
120
|
+
X-Powered-By:
|
121
|
+
- ASP.NET
|
122
|
+
Date:
|
123
|
+
- Fri, 11 Nov 2016 15:57:30 GMT
|
124
|
+
Content-Length:
|
125
|
+
- '4146'
|
126
|
+
body:
|
127
|
+
encoding: UTF-8
|
128
|
+
string: <?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope"
|
129
|
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><CampaignsResponse
|
130
|
+
xmlns="http://cakemarketing.com/api/6/"><CampaignsResult><success>true</success><row_count>1</row_count><campaigns><campaign><campaign_id>23733</campaign_id><third_party_name>Best
|
131
|
+
Campaign Ever</third_party_name><campaign_type><campaign_type_id xmlns="API:id_name_store">1</campaign_type_id><campaign_type_name
|
132
|
+
xmlns="API:id_name_store">Standard</campaign_type_name></campaign_type><affiliate><affiliate_id
|
133
|
+
xmlns="API:id_name_store">9643</affiliate_id><affiliate_name xmlns="API:id_name_store">ad2games</affiliate_name></affiliate><offer><offer_id
|
134
|
+
xmlns="API:id_name_store">11390</offer_id><offer_name xmlns="API:id_name_store">Helge's
|
135
|
+
Awesome Offer (DE CPO)</offer_name></offer><offer_contract><offer_contract_id>10342</offer_contract_id><offer_contract_name>Networks</offer_contract_name><price_format><price_format_id
|
136
|
+
xmlns="API:id_name_store">1</price_format_id><price_format_name xmlns="API:id_name_store">CPA</price_format_name></price_format></offer_contract><original>false</original><exceptions><allowed_sub_affiliates
|
137
|
+
/><allowed_creatives /></exceptions><account_status><account_status_id xmlns="API:id_name_store">2</account_status_id><account_status_name
|
138
|
+
xmlns="API:id_name_store">Inactive</account_status_name></account_status><payout><is_percentage>false</is_percentage><amount>1.0000</amount><formatted_amount>$1.00</formatted_amount></payout><currency><currency_id
|
139
|
+
xmlns="API:id_name_store">1</currency_id><currency_symbol xmlns="API:id_name_store">$</currency_symbol><currency_name
|
140
|
+
xmlns="API:id_name_store">US Dollar</currency_name><currency_abbr xmlns="API:id_name_store">USD</currency_abbr></currency><media_type><media_type_id
|
141
|
+
xmlns="API:id_name_store">2</media_type_id><media_type_name xmlns="API:id_name_store">Network</media_type_name></media_type><deal_flow><date_contacted
|
142
|
+
xsi:nil="true" /><date_io_sent xsi:nil="true" /><date_io_signed xsi:nil="true"
|
143
|
+
/><date_creative_sent xsi:nil="true" /><date_pixel_placed>2016-11-10T10:40:41.057</date_pixel_placed></deal_flow><paid>false</paid><paid_redirects>false</paid_redirects><disable_prepop_appending>false</disable_prepop_appending><suppression_amount
|
144
|
+
xsi:nil="true" /><redirect_domain>trk_ad2games.cakemarketing.net</redirect_domain><click_cap><limit
|
145
|
+
xsi:nil="true" /><cap_interval><cap_interval_id xmlns="API:id_name_store">0</cap_interval_id><cap_interval_name
|
146
|
+
xmlns="API:id_name_store">None</cap_interval_name></cap_interval><start_date
|
147
|
+
xsi:nil="true" /><review_no_redirect>false</review_no_redirect></click_cap><conversion_cap><limit
|
148
|
+
xsi:nil="true" /><cap_interval><cap_interval_id xmlns="API:id_name_store">0</cap_interval_id><cap_interval_name
|
149
|
+
xmlns="API:id_name_store">None</cap_interval_name></cap_interval><start_date
|
150
|
+
xsi:nil="true" /><review_no_redirect>false</review_no_redirect></conversion_cap><pixel_info><pixel_status>Approved</pixel_status><pixel_html>pixelpixelpixel</pixel_html><hash_type><hash_type_id
|
151
|
+
xmlns="API:id_name_store">0</hash_type_id><hash_type_name xmlns="API:id_name_store">None</hash_type_name></hash_type><postback_url>https://example.com/postback</postback_url><postback_delay_ms>100</postback_delay_ms></pixel_info><upsell_info><disable_upsells>false</disable_upsells><paid_upsells>false</paid_upsells><paid_upsells_same_session_only>false</paid_upsells_same_session_only><clear_session_on_conversion>false</clear_session_on_conversion></upsell_info><test_link>https://example.com/test</test_link><redirect_offer><offer_contract_id>10339</offer_contract_id><offer_contract_name>Networks</offer_contract_name><price_format><price_format_id
|
152
|
+
xmlns="API:id_name_store">1</price_format_id><price_format_name xmlns="API:id_name_store">CPA</price_format_name></price_format></redirect_offer><redirect_404>false</redirect_404><date_created>2016-11-08T16:49:09.017</date_created><expiration_date
|
153
|
+
xsi:nil="true" /><notes /></campaign></campaigns></CampaignsResult></CampaignsResponse></soap:Body></soap:Envelope>
|
154
|
+
http_version:
|
155
|
+
recorded_at: Fri, 11 Nov 2016 15:57:53 GMT
|
156
|
+
- request:
|
157
|
+
method: post
|
158
|
+
uri: https://cake-partner-domain.com/api/6/export.asmx
|
159
|
+
body:
|
160
|
+
encoding: UTF-8
|
161
|
+
string: |
|
162
|
+
<?xml version="1.0"?>
|
163
|
+
<env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope" xmlns:cake="http://cakemarketing.com/api/6/">
|
164
|
+
<env:Header/>
|
165
|
+
<env:Body>
|
166
|
+
<cake:Campaigns>
|
167
|
+
<cake:api_key>cake-api-key</cake:api_key>
|
168
|
+
<cake:campaign_id>23733</cake:campaign_id>
|
169
|
+
</cake:Campaigns>
|
170
|
+
</env:Body>
|
171
|
+
</env:Envelope>
|
172
|
+
headers:
|
173
|
+
Content-Type:
|
174
|
+
- application/soap+xml;charset=UTF-8
|
175
|
+
Accept-Encoding:
|
176
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
177
|
+
Accept:
|
178
|
+
- "*/*"
|
179
|
+
User-Agent:
|
180
|
+
- Ruby
|
181
|
+
response:
|
182
|
+
status:
|
183
|
+
code: 200
|
184
|
+
message: OK
|
185
|
+
headers:
|
186
|
+
Cache-Control:
|
187
|
+
- private, max-age=0
|
188
|
+
Content-Type:
|
189
|
+
- application/soap+xml; charset=utf-8
|
190
|
+
Server:
|
191
|
+
- Microsoft-IIS/8.5
|
192
|
+
X-Aspnet-Version:
|
193
|
+
- 4.0.30319
|
194
|
+
X-Powered-By:
|
195
|
+
- ASP.NET
|
196
|
+
Date:
|
197
|
+
- Fri, 11 Nov 2016 15:57:30 GMT
|
198
|
+
Content-Length:
|
199
|
+
- '4146'
|
200
|
+
body:
|
201
|
+
encoding: UTF-8
|
202
|
+
string: <?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope"
|
203
|
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><CampaignsResponse
|
204
|
+
xmlns="http://cakemarketing.com/api/6/"><CampaignsResult><success>true</success><row_count>1</row_count><campaigns><campaign><campaign_id>23733</campaign_id><third_party_name>Best
|
205
|
+
Campaign Ever</third_party_name><campaign_type><campaign_type_id xmlns="API:id_name_store">1</campaign_type_id><campaign_type_name
|
206
|
+
xmlns="API:id_name_store">Standard</campaign_type_name></campaign_type><affiliate><affiliate_id
|
207
|
+
xmlns="API:id_name_store">9643</affiliate_id><affiliate_name xmlns="API:id_name_store">ad2games</affiliate_name></affiliate><offer><offer_id
|
208
|
+
xmlns="API:id_name_store">11390</offer_id><offer_name xmlns="API:id_name_store">Helge's
|
209
|
+
Awesome Offer (DE CPO)</offer_name></offer><offer_contract><offer_contract_id>10342</offer_contract_id><offer_contract_name>Networks</offer_contract_name><price_format><price_format_id
|
210
|
+
xmlns="API:id_name_store">1</price_format_id><price_format_name xmlns="API:id_name_store">CPA</price_format_name></price_format></offer_contract><original>false</original><exceptions><allowed_sub_affiliates
|
211
|
+
/><allowed_creatives /></exceptions><account_status><account_status_id xmlns="API:id_name_store">2</account_status_id><account_status_name
|
212
|
+
xmlns="API:id_name_store">Inactive</account_status_name></account_status><payout><is_percentage>false</is_percentage><amount>1.0000</amount><formatted_amount>$1.00</formatted_amount></payout><currency><currency_id
|
213
|
+
xmlns="API:id_name_store">1</currency_id><currency_symbol xmlns="API:id_name_store">$</currency_symbol><currency_name
|
214
|
+
xmlns="API:id_name_store">US Dollar</currency_name><currency_abbr xmlns="API:id_name_store">USD</currency_abbr></currency><media_type><media_type_id
|
215
|
+
xmlns="API:id_name_store">2</media_type_id><media_type_name xmlns="API:id_name_store">Network</media_type_name></media_type><deal_flow><date_contacted
|
216
|
+
xsi:nil="true" /><date_io_sent xsi:nil="true" /><date_io_signed xsi:nil="true"
|
217
|
+
/><date_creative_sent xsi:nil="true" /><date_pixel_placed>2016-11-10T10:40:41.057</date_pixel_placed></deal_flow><paid>false</paid><paid_redirects>false</paid_redirects><disable_prepop_appending>false</disable_prepop_appending><suppression_amount
|
218
|
+
xsi:nil="true" /><redirect_domain>trk_ad2games.cakemarketing.net</redirect_domain><click_cap><limit
|
219
|
+
xsi:nil="true" /><cap_interval><cap_interval_id xmlns="API:id_name_store">0</cap_interval_id><cap_interval_name
|
220
|
+
xmlns="API:id_name_store">None</cap_interval_name></cap_interval><start_date
|
221
|
+
xsi:nil="true" /><review_no_redirect>false</review_no_redirect></click_cap><conversion_cap><limit
|
222
|
+
xsi:nil="true" /><cap_interval><cap_interval_id xmlns="API:id_name_store">0</cap_interval_id><cap_interval_name
|
223
|
+
xmlns="API:id_name_store">None</cap_interval_name></cap_interval><start_date
|
224
|
+
xsi:nil="true" /><review_no_redirect>false</review_no_redirect></conversion_cap><pixel_info><pixel_status>Approved</pixel_status><pixel_html>pixelpixelpixel</pixel_html><hash_type><hash_type_id
|
225
|
+
xmlns="API:id_name_store">0</hash_type_id><hash_type_name xmlns="API:id_name_store">None</hash_type_name></hash_type><postback_url>https://example.com/postback</postback_url><postback_delay_ms>100</postback_delay_ms></pixel_info><upsell_info><disable_upsells>false</disable_upsells><paid_upsells>false</paid_upsells><paid_upsells_same_session_only>false</paid_upsells_same_session_only><clear_session_on_conversion>false</clear_session_on_conversion></upsell_info><test_link>https://example.com/test</test_link><redirect_offer><offer_contract_id>10339</offer_contract_id><offer_contract_name>Networks</offer_contract_name><price_format><price_format_id
|
226
|
+
xmlns="API:id_name_store">1</price_format_id><price_format_name xmlns="API:id_name_store">CPA</price_format_name></price_format></redirect_offer><redirect_404>false</redirect_404><date_created>2016-11-08T16:49:09.017</date_created><expiration_date
|
227
|
+
xsi:nil="true" /><notes /></campaign></campaigns></CampaignsResult></CampaignsResponse></soap:Body></soap:Envelope>
|
228
|
+
http_version:
|
229
|
+
recorded_at: Fri, 11 Nov 2016 15:57:53 GMT
|
230
|
+
- request:
|
231
|
+
method: post
|
232
|
+
uri: https://cake-partner-domain.com/api/3/addedit.asmx
|
233
|
+
body:
|
234
|
+
encoding: UTF-8
|
235
|
+
string: |
|
236
|
+
<?xml version="1.0"?>
|
237
|
+
<env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope" xmlns:cake="http://cakemarketing.com/api/3/">
|
238
|
+
<env:Header/>
|
239
|
+
<env:Body>
|
240
|
+
<cake:Campaign>
|
241
|
+
<cake:api_key>cake-api-key</cake:api_key>
|
242
|
+
<cake:account_status_id>0</cake:account_status_id>
|
243
|
+
<cake:expiration_date_modification_type>do_not_change</cake:expiration_date_modification_type>
|
244
|
+
<cake:currency_id>0</cake:currency_id>
|
245
|
+
<cake:use_offer_contract_payout>no_change</cake:use_offer_contract_payout>
|
246
|
+
<cake:payout_update_option>do_not_change</cake:payout_update_option>
|
247
|
+
<cake:paid>no_change</cake:paid>
|
248
|
+
<cake:paid_redirects>no_change</cake:paid_redirects>
|
249
|
+
<cake:paid_upsells>no_change</cake:paid_upsells>
|
250
|
+
<cake:review>no_change</cake:review>
|
251
|
+
<cake:auto_disposition_delay_hours>0</cake:auto_disposition_delay_hours>
|
252
|
+
<cake:redirect_offer_contract_id>0</cake:redirect_offer_contract_id>
|
253
|
+
<cake:redirect_404>no_change</cake:redirect_404>
|
254
|
+
<cake:clear_session_on_conversion>no_change</cake:clear_session_on_conversion>
|
255
|
+
<cake:postback_delay_ms>-1</cake:postback_delay_ms>
|
256
|
+
<cake:affiliate_id>9643</cake:affiliate_id>
|
257
|
+
<cake:display_link_type_id>1</cake:display_link_type_id>
|
258
|
+
<cake:media_type_id>2</cake:media_type_id>
|
259
|
+
<cake:offer_contract_id>10342</cake:offer_contract_id>
|
260
|
+
<cake:offer_id>11390</cake:offer_id>
|
261
|
+
<cake:payout>1.0000</cake:payout>
|
262
|
+
<cake:pixel_html>pixelpixelpixel</cake:pixel_html>
|
263
|
+
<cake:postback_url>https://example.com/postback</cake:postback_url>
|
264
|
+
<cake:redirect_domain>trk_ad2games.cakemarketing.net</cake:redirect_domain>
|
265
|
+
<cake:test_link>https://example.com/test</cake:test_link>
|
266
|
+
<cake:unique_key_hash>0</cake:unique_key_hash>
|
267
|
+
<cake:third_party_name>Best Campaign Ever</cake:third_party_name>
|
268
|
+
<cake:campaign_id>23733</cake:campaign_id>
|
269
|
+
<cake:expiration_date>1970-01-01T01:00:00</cake:expiration_date>
|
270
|
+
</cake:Campaign>
|
271
|
+
</env:Body>
|
272
|
+
</env:Envelope>
|
273
|
+
headers:
|
274
|
+
Content-Type:
|
275
|
+
- application/soap+xml;charset=UTF-8
|
276
|
+
Accept-Encoding:
|
277
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
278
|
+
Accept:
|
279
|
+
- "*/*"
|
280
|
+
User-Agent:
|
281
|
+
- Ruby
|
282
|
+
response:
|
283
|
+
status:
|
284
|
+
code: 200
|
285
|
+
message: OK
|
286
|
+
headers:
|
287
|
+
Cache-Control:
|
288
|
+
- private, max-age=0
|
289
|
+
Content-Type:
|
290
|
+
- application/soap+xml; charset=utf-8
|
291
|
+
Server:
|
292
|
+
- Microsoft-IIS/8.5
|
293
|
+
X-Aspnet-Version:
|
294
|
+
- 4.0.30319
|
295
|
+
X-Powered-By:
|
296
|
+
- ASP.NET
|
297
|
+
Date:
|
298
|
+
- Fri, 11 Nov 2016 15:57:30 GMT
|
299
|
+
Content-Length:
|
300
|
+
- '634'
|
301
|
+
body:
|
302
|
+
encoding: UTF-8
|
303
|
+
string: <?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope"
|
304
|
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><CampaignResponse
|
305
|
+
xmlns="http://cakemarketing.com/api/3/"><CampaignResult><success>true</success><message>Campaign
|
306
|
+
Updated</message><success_info><campaign_id>23733</campaign_id><affiliate_id>9643</affiliate_id><offer_id>11390</offer_id><offer_contract_id>10342</offer_contract_id><media_type_id>2</media_type_id><original>false</original></success_info></CampaignResult></CampaignResponse></soap:Body></soap:Envelope>
|
307
|
+
http_version:
|
308
|
+
recorded_at: Fri, 11 Nov 2016 15:57:54 GMT
|
309
|
+
- request:
|
310
|
+
method: post
|
311
|
+
uri: https://cake-partner-domain.com/api/6/export.asmx
|
312
|
+
body:
|
313
|
+
encoding: UTF-8
|
314
|
+
string: |
|
315
|
+
<?xml version="1.0"?>
|
316
|
+
<env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope" xmlns:cake="http://cakemarketing.com/api/6/">
|
317
|
+
<env:Header/>
|
318
|
+
<env:Body>
|
319
|
+
<cake:Campaigns>
|
320
|
+
<cake:api_key>cake-api-key</cake:api_key>
|
321
|
+
<cake:campaign_id>23733</cake:campaign_id>
|
322
|
+
</cake:Campaigns>
|
323
|
+
</env:Body>
|
324
|
+
</env:Envelope>
|
325
|
+
headers:
|
326
|
+
Content-Type:
|
327
|
+
- application/soap+xml;charset=UTF-8
|
328
|
+
Accept-Encoding:
|
329
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
330
|
+
Accept:
|
331
|
+
- "*/*"
|
332
|
+
User-Agent:
|
333
|
+
- Ruby
|
334
|
+
response:
|
335
|
+
status:
|
336
|
+
code: 200
|
337
|
+
message: OK
|
338
|
+
headers:
|
339
|
+
Cache-Control:
|
340
|
+
- private, max-age=0
|
341
|
+
Content-Type:
|
342
|
+
- application/soap+xml; charset=utf-8
|
343
|
+
Server:
|
344
|
+
- Microsoft-IIS/8.5
|
345
|
+
X-Aspnet-Version:
|
346
|
+
- 4.0.30319
|
347
|
+
X-Powered-By:
|
348
|
+
- ASP.NET
|
349
|
+
Date:
|
350
|
+
- Fri, 11 Nov 2016 15:57:31 GMT
|
351
|
+
Content-Length:
|
352
|
+
- '4146'
|
353
|
+
body:
|
354
|
+
encoding: UTF-8
|
355
|
+
string: <?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope"
|
356
|
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><CampaignsResponse
|
357
|
+
xmlns="http://cakemarketing.com/api/6/"><CampaignsResult><success>true</success><row_count>1</row_count><campaigns><campaign><campaign_id>23733</campaign_id><third_party_name>Best
|
358
|
+
Campaign Ever</third_party_name><campaign_type><campaign_type_id xmlns="API:id_name_store">1</campaign_type_id><campaign_type_name
|
359
|
+
xmlns="API:id_name_store">Standard</campaign_type_name></campaign_type><affiliate><affiliate_id
|
360
|
+
xmlns="API:id_name_store">9643</affiliate_id><affiliate_name xmlns="API:id_name_store">ad2games</affiliate_name></affiliate><offer><offer_id
|
361
|
+
xmlns="API:id_name_store">11390</offer_id><offer_name xmlns="API:id_name_store">Helge's
|
362
|
+
Awesome Offer (DE CPO)</offer_name></offer><offer_contract><offer_contract_id>10342</offer_contract_id><offer_contract_name>Networks</offer_contract_name><price_format><price_format_id
|
363
|
+
xmlns="API:id_name_store">1</price_format_id><price_format_name xmlns="API:id_name_store">CPA</price_format_name></price_format></offer_contract><original>false</original><exceptions><allowed_sub_affiliates
|
364
|
+
/><allowed_creatives /></exceptions><account_status><account_status_id xmlns="API:id_name_store">2</account_status_id><account_status_name
|
365
|
+
xmlns="API:id_name_store">Inactive</account_status_name></account_status><payout><is_percentage>false</is_percentage><amount>1.0000</amount><formatted_amount>$1.00</formatted_amount></payout><currency><currency_id
|
366
|
+
xmlns="API:id_name_store">1</currency_id><currency_symbol xmlns="API:id_name_store">$</currency_symbol><currency_name
|
367
|
+
xmlns="API:id_name_store">US Dollar</currency_name><currency_abbr xmlns="API:id_name_store">USD</currency_abbr></currency><media_type><media_type_id
|
368
|
+
xmlns="API:id_name_store">2</media_type_id><media_type_name xmlns="API:id_name_store">Network</media_type_name></media_type><deal_flow><date_contacted
|
369
|
+
xsi:nil="true" /><date_io_sent xsi:nil="true" /><date_io_signed xsi:nil="true"
|
370
|
+
/><date_creative_sent xsi:nil="true" /><date_pixel_placed>2016-11-10T10:40:41.057</date_pixel_placed></deal_flow><paid>false</paid><paid_redirects>false</paid_redirects><disable_prepop_appending>false</disable_prepop_appending><suppression_amount
|
371
|
+
xsi:nil="true" /><redirect_domain>trk_ad2games.cakemarketing.net</redirect_domain><click_cap><limit
|
372
|
+
xsi:nil="true" /><cap_interval><cap_interval_id xmlns="API:id_name_store">0</cap_interval_id><cap_interval_name
|
373
|
+
xmlns="API:id_name_store">None</cap_interval_name></cap_interval><start_date
|
374
|
+
xsi:nil="true" /><review_no_redirect>false</review_no_redirect></click_cap><conversion_cap><limit
|
375
|
+
xsi:nil="true" /><cap_interval><cap_interval_id xmlns="API:id_name_store">0</cap_interval_id><cap_interval_name
|
376
|
+
xmlns="API:id_name_store">None</cap_interval_name></cap_interval><start_date
|
377
|
+
xsi:nil="true" /><review_no_redirect>false</review_no_redirect></conversion_cap><pixel_info><pixel_status>Approved</pixel_status><pixel_html>pixelpixelpixel</pixel_html><hash_type><hash_type_id
|
378
|
+
xmlns="API:id_name_store">0</hash_type_id><hash_type_name xmlns="API:id_name_store">None</hash_type_name></hash_type><postback_url>https://example.com/postback</postback_url><postback_delay_ms>100</postback_delay_ms></pixel_info><upsell_info><disable_upsells>false</disable_upsells><paid_upsells>false</paid_upsells><paid_upsells_same_session_only>false</paid_upsells_same_session_only><clear_session_on_conversion>false</clear_session_on_conversion></upsell_info><test_link>https://example.com/test</test_link><redirect_offer><offer_contract_id>10339</offer_contract_id><offer_contract_name>Networks</offer_contract_name><price_format><price_format_id
|
379
|
+
xmlns="API:id_name_store">1</price_format_id><price_format_name xmlns="API:id_name_store">CPA</price_format_name></price_format></redirect_offer><redirect_404>false</redirect_404><date_created>2016-11-08T16:49:09.017</date_created><expiration_date
|
380
|
+
xsi:nil="true" /><notes /></campaign></campaigns></CampaignsResult></CampaignsResponse></soap:Body></soap:Envelope>
|
381
|
+
http_version:
|
382
|
+
recorded_at: Fri, 11 Nov 2016 15:57:54 GMT
|
383
|
+
recorded_with: VCR 3.0.3
|