appnexusapi 0.1.3 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +33 -4
- data/UPGRADING.md +10 -0
- data/appnexusapi.gemspec +2 -0
- data/env_example +1 -3
- data/lib/appnexusapi/advertiser_resource.rb +2 -0
- data/lib/appnexusapi/advertiser_service.rb +2 -0
- data/lib/appnexusapi/campaign_resource.rb +2 -0
- data/lib/appnexusapi/campaign_service.rb +2 -0
- data/lib/appnexusapi/connection.rb +19 -5
- data/lib/appnexusapi/content_category_service.rb +3 -1
- data/lib/appnexusapi/creative_service.rb +0 -10
- data/lib/appnexusapi/payment_rule_resource.rb +2 -0
- data/lib/appnexusapi/payment_rule_service.rb +2 -0
- data/lib/appnexusapi/placement_resource.rb +2 -0
- data/lib/appnexusapi/placement_service.rb +2 -0
- data/lib/appnexusapi/profile_resource.rb +2 -0
- data/lib/appnexusapi/profile_service.rb +2 -0
- data/lib/appnexusapi/publisher_resource.rb +2 -0
- data/lib/appnexusapi/publisher_service.rb +2 -0
- data/lib/appnexusapi/resource.rb +5 -4
- data/lib/appnexusapi/service.rb +16 -8
- data/lib/appnexusapi/site_resource.rb +2 -0
- data/lib/appnexusapi/site_service.rb +2 -0
- data/lib/appnexusapi/version.rb +1 -1
- data/spec/connection_spec.rb +13 -3
- data/spec/creative_service_spec.rb +33 -22
- data/spec/fixtures/vcr/advertiser_get.yml +108 -0
- data/spec/fixtures/vcr/campaign_life_cycle.yml +524 -0
- data/spec/fixtures/vcr/content_category_crud.yml +398 -0
- data/spec/fixtures/vcr/creative_service_create.yml +216 -0
- data/spec/fixtures/vcr/creative_service_delete.yml +354 -0
- data/spec/fixtures/vcr/creative_service_get.yml +214 -0
- data/spec/fixtures/vcr/creative_service_update.yml +266 -0
- data/spec/fixtures/vcr/domain_list_limits.yml +105 -0
- data/spec/fixtures/vcr/line_item_life_cycle.yml +521 -0
- data/spec/fixtures/vcr/member_get.yml +150 -0
- data/spec/fixtures/vcr/object_limit_info.yml +105 -0
- data/spec/fixtures/vcr/payment_rule_lifecycle.yml +346 -0
- data/spec/fixtures/vcr/placement_service_default_placement.yml +166 -0
- data/spec/fixtures/vcr/profile_life_cycle.yml +349 -0
- data/spec/fixtures/vcr/profile_limits.yml +105 -0
- data/spec/fixtures/vcr/publisher_crud.yml +282 -0
- data/spec/fixtures/vcr/site_lifecycle.yml +284 -0
- data/spec/fixtures/vcr/user_login.yml +107 -0
- data/spec/fixtures/vcr/user_update.yml +288 -0
- data/spec/integration/advertiser_spec.rb +11 -0
- data/spec/integration/campaign_spec.rb +38 -0
- data/spec/integration/content_category_spec.rb +22 -0
- data/spec/integration/line_item_spec.rb +27 -0
- data/spec/integration/member_spec.rb +9 -0
- data/spec/integration/payment_rule_spec.rb +33 -0
- data/spec/integration/placement_spec.rb +29 -0
- data/spec/integration/profile_spec.rb +29 -0
- data/spec/integration/publisher_spec.rb +20 -0
- data/spec/integration/site_spec.rb +32 -0
- data/spec/integration/user_spec.rb +42 -0
- data/spec/object_limit_service_spec.rb +14 -11
- data/spec/spec_helper.rb +52 -25
- data/spec/support/shared_contexts.rb +28 -0
- metadata +109 -3
@@ -0,0 +1,266 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://api-test.appnexus.com/auth
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"auth":{"username":"<APPNEXUS_USERNAME>","password":"<APPNEXUS_PASSWORD>"}}'
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.11.0
|
12
|
+
Content-Type:
|
13
|
+
- application/json
|
14
|
+
Accept-Encoding:
|
15
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
16
|
+
Accept:
|
17
|
+
- "*/*"
|
18
|
+
response:
|
19
|
+
status:
|
20
|
+
code: 200
|
21
|
+
message: OK
|
22
|
+
headers:
|
23
|
+
Cache-Control:
|
24
|
+
- no-store, no-cache, must-revalidate, post-check=0, pre-check=0;no-cache
|
25
|
+
Content-Length:
|
26
|
+
- '698'
|
27
|
+
Content-Type:
|
28
|
+
- application/json
|
29
|
+
Date:
|
30
|
+
- Wed, 08 Feb 2017 12:58:24 GMT
|
31
|
+
Expires:
|
32
|
+
- Thu, 19 Nov 1981 08:52:00 GMT
|
33
|
+
Pragma:
|
34
|
+
- no-cache
|
35
|
+
Server:
|
36
|
+
- Apache
|
37
|
+
Set-Cookie:
|
38
|
+
- HBFAPI_SESSID=hbapi%3A171678%3A589b15f13b41a%3Anym2; Path=/
|
39
|
+
X-Route:
|
40
|
+
- "/auth"
|
41
|
+
X-Route-Time:
|
42
|
+
- '1385'
|
43
|
+
body:
|
44
|
+
encoding: UTF-8
|
45
|
+
string: '{"response":{"status":"OK","token":"hbapi:171678:589b15f13b41a:nym2","dbg_info":{"instance":"01.hbapi.test104169.nym2","slave_hit":false,"db":"master","parent_dbg_info":{"instance":"01.api.test104169.nym2","slave_hit":false,"db":"master","awesomesauce_cache_used":false,"count_cache_used":false,"uuid":"d3c660e5-98ba-53ff-aa66-60735064148a","warnings":[],"time":794.95191574097,"start_microtime":1486558704.116,"version":"1.17","output_term":"not_found"},"awesomesauce_cache_used":false,"count_cache_used":false,"uuid":"6e52be60-4cd6-5b3b-b02f-b5ab4cf27542","warnings":[],"time":1371.2329864502,"start_microtime":1486558704.0903,"version":"1.17.202","slave_lag":1040240,"output_term":"not_found"}}}'
|
46
|
+
http_version:
|
47
|
+
recorded_at: Wed, 08 Feb 2017 12:58:23 GMT
|
48
|
+
- request:
|
49
|
+
method: post
|
50
|
+
uri: https://api-test.appnexus.com/advertiser
|
51
|
+
body:
|
52
|
+
encoding: UTF-8
|
53
|
+
string: '{"advertiser":{"name":"rspec advertiser"}}'
|
54
|
+
headers:
|
55
|
+
User-Agent:
|
56
|
+
- Faraday v0.11.0
|
57
|
+
Authorization:
|
58
|
+
- hbapi:171678:589b15f13b41a:nym2
|
59
|
+
Content-Type:
|
60
|
+
- application/json
|
61
|
+
Accept-Encoding:
|
62
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
63
|
+
Accept:
|
64
|
+
- "*/*"
|
65
|
+
response:
|
66
|
+
status:
|
67
|
+
code: 200
|
68
|
+
message: OK
|
69
|
+
headers:
|
70
|
+
Cache-Control:
|
71
|
+
- no-store, no-cache, must-revalidate, post-check=0, pre-check=0;no-cache
|
72
|
+
Content-Length:
|
73
|
+
- '1642'
|
74
|
+
Content-Type:
|
75
|
+
- application/json
|
76
|
+
Date:
|
77
|
+
- Wed, 08 Feb 2017 12:58:25 GMT
|
78
|
+
Expires:
|
79
|
+
- Thu, 19 Nov 1981 08:52:00 GMT
|
80
|
+
Pragma:
|
81
|
+
- no-cache
|
82
|
+
Server:
|
83
|
+
- Apache
|
84
|
+
Set-Cookie:
|
85
|
+
- HBFAPI_SESSID=hbapi%3A171678%3A589b15f13b41a%3Anym2; Path=/
|
86
|
+
X-Count-Read:
|
87
|
+
- user:7,member:3,serviceHostUser:1,serviceHostMember:1,hostUser:2,hostMember:2,ip:0
|
88
|
+
X-Count-Write:
|
89
|
+
- user:6,member:6,serviceHostUser:5,serviceHostMember:5,hostUser:5,hostMember:5,ip:0
|
90
|
+
X-Ratelimit-Read:
|
91
|
+
- '1000'
|
92
|
+
X-Ratelimit-Service:
|
93
|
+
- 1000-Default
|
94
|
+
X-Ratelimit-System:
|
95
|
+
- 1000-Default
|
96
|
+
X-Ratelimit-Write:
|
97
|
+
- '1000'
|
98
|
+
X-Route:
|
99
|
+
- "/advertiser"
|
100
|
+
X-Route-Time:
|
101
|
+
- '304'
|
102
|
+
body:
|
103
|
+
encoding: UTF-8
|
104
|
+
string: '{"response":{"status":"OK","count":1,"id":1561319,"start_element":0,"num_elements":100,"advertiser":{"id":1561319,"code":null,"name":"rspec
|
105
|
+
advertiser","state":"active","default_brand_id":null,"remarketing_segment_id":null,"profile_id":null,"control_pct":0,"timezone":"EST5EDT","last_modified":"2017-02-08
|
106
|
+
12:58:25","member_id":487,"billing_name":null,"billing_phone":null,"billing_address1":null,"billing_address2":null,"billing_city":null,"billing_state":null,"billing_country":null,"billing_zip":null,"default_currency":"USD","use_insertion_orders":false,"time_format":"12-hour","is_malicious":false,"is_mediated":false,"billing_internal_user":null,"default_category":null,"default_brand":null,"labels":null,"competitive_brands":null,"competitive_categories":null,"thirdparty_pixels":null,"macros":null,"lifetime_budget":null,"lifetime_budget_imps":null,"daily_budget":null,"daily_budget_imps":null,"enable_pacing":null,"allow_safety_pacing":null,"lifetime_pacing":null,"lifetime_pacing_span":null,"lifetime_pacing_pct":null},"dbg_info":{"instance":"01.hbapi.test104169.nym2","slave_hit":false,"db":"master","user::reads":7,"user::read_limit":1000,"user::read_limit_seconds":60,"user::writes":6,"user::write_limit":1000,"user::write_limit_seconds":60,"reads":3,"read_limit":1000,"read_limit_seconds":60,"writes":6,"write_limit":1000,"write_limit_seconds":60,"awesomesauce_cache_used":false,"count_cache_used":true,"uuid":"b3209836-0eab-5f2d-8875-765d83b3ae3c","warnings":[],"time":286.59510612488,"start_microtime":1486558705.9269,"version":"1.17.202","slave_lag":1040247,"member_last_modified_age":1486558705,"output_term":"advertiser"}}}'
|
107
|
+
http_version:
|
108
|
+
recorded_at: Wed, 08 Feb 2017 12:58:24 GMT
|
109
|
+
- request:
|
110
|
+
method: post
|
111
|
+
uri: https://api-test.appnexus.com/creative?advertiser_id=1561319
|
112
|
+
body:
|
113
|
+
encoding: UTF-8
|
114
|
+
string: '{"creative":{"name":"rspec test creative","content":"<iframe src=\"helloword.html\"></iframe>","width":"300","height":"250","template":{"id":7}}}'
|
115
|
+
headers:
|
116
|
+
User-Agent:
|
117
|
+
- Faraday v0.11.0
|
118
|
+
Authorization:
|
119
|
+
- hbapi:171678:589b15f13b41a:nym2
|
120
|
+
Content-Type:
|
121
|
+
- application/json
|
122
|
+
Accept-Encoding:
|
123
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
124
|
+
Accept:
|
125
|
+
- "*/*"
|
126
|
+
response:
|
127
|
+
status:
|
128
|
+
code: 200
|
129
|
+
message: OK
|
130
|
+
headers:
|
131
|
+
Content-Length:
|
132
|
+
- '3043'
|
133
|
+
Content-Type:
|
134
|
+
- application/json
|
135
|
+
X-Count-Read:
|
136
|
+
- user:7,member:3,serviceHostUser:1,serviceHostMember:1,hostUser:1,hostMember:1,ip:0
|
137
|
+
X-Count-Write:
|
138
|
+
- user:7,member:7,serviceHostUser:2,serviceHostMember:2,hostUser:2,hostMember:2,ip:0
|
139
|
+
X-Ratelimit-Read:
|
140
|
+
- '1000'
|
141
|
+
X-Ratelimit-Service:
|
142
|
+
- 1000-Default
|
143
|
+
X-Ratelimit-System:
|
144
|
+
- 1000-Default
|
145
|
+
X-Ratelimit-Write:
|
146
|
+
- '1000'
|
147
|
+
X-Route:
|
148
|
+
- "/creative"
|
149
|
+
X-Route-Time:
|
150
|
+
- '406'
|
151
|
+
body:
|
152
|
+
encoding: UTF-8
|
153
|
+
string: '{"response":{"status":"OK","count":1,"id":62215801,"start_element":0,"num_elements":100,"creative":{"name":"rspec
|
154
|
+
test creative","brand_id":1,"media_url":null,"id":62215801,"code":null,"code2":null,"member_id":487,"state":"active","click_track_result":"not_tested","advertiser_id":1561319,"publisher_id":null,"format":"iframe-html","width":300,"height":250,"click_url":null,"flash_click_variable":null,"no_iframes":false,"content":"<iframe
|
155
|
+
src=\"helloword.html\"><\/iframe>","original_content":null,"file_name":null,"track_clicks":true,"audit_status":"pending","macros":null,"profile_id":null,"audit_feedback":null,"is_prohibited":false,"created_on":"2017-02-08
|
156
|
+
12:58:26","flash_backup_url":null,"last_modified":"2017-02-08 12:58:26","is_control":false,"allow_audit":true,"is_expired":false,"creative_upload_status":null,"backup_upload_status":null,"use_dynamic_click_url":false,"media_subtypes":["banner"],"size_in_bytes":0,"is_self_audited":false,"no_adservers":false,"text_title":null,"text_description":null,"text_display_url":null,"click_action":"click-to-web","click_target":null,"ssl_status":"disabled","allow_ssl_audit":false,"media_url_secure":null,"content_secure":null,"original_content_secure":null,"flash_backup_url_secure":null,"is_hosted":false,"content_source":"standard","lifetime_budget":null,"lifetime_budget_imps":null,"daily_budget":null,"daily_budget_imps":null,"enable_pacing":null,"allow_safety_pacing":null,"landing_page_url":null,"thirdparty_creative_id":null,"thirdparty_campaign_id":null,"facebook_audit_status":null,"facebook_audit_feedback":null,"custom_request_template":null,"language":{"id":1,"name":"English"},"pop_values":null,"brand":{"id":1,"name":"Unknown","category_id":0},"template":{"id":7,"name":"Standard","media_subtype_id":1,"format_id":7},"ios_ssl_audit":null,"adx_audit":null,"thirdparty_page":null,"custom_macros":null,"segments":null,"folder":null,"campaigns":null,"line_items":null,"competitive_brands":null,"competitive_categories":null,"pixels":null,"mobile":null,"video_attribute":null,"media_assets":null,"sla":null,"thirdparty_pixels":null,"native":null,"click_trackers":null,"impression_trackers":null,"thirdparty_viewability_providers":null,"status":{"user_ready":true,"hosted_assets_association_complete":null},"sla_eta":null,"currency":"USD","type":"standard"},"dbg_info":{"instance":"01.creative-api.test104169.nym2","db":"","output_term":"creative","parent_dbg_info":{"instance":"01.hbapi.test104169.nym2","slave_hit":false,"db":"master","user::reads":7,"user::read_limit":1000,"user::read_limit_seconds":60,"user::writes":7,"user::write_limit":1000,"user::write_limit_seconds":60,"reads":3,"read_limit":1000,"read_limit_seconds":60,"writes":7,"write_limit":1000,"write_limit_seconds":60,"awesomesauce_cache_used":false,"count_cache_used":true,"uuid":"09215f78-16ab-5137-bab9-2a21504b3493","warnings":[],"time":364.9160861969,"start_microtime":1.4865587067588E9,"version":"1.17.202","slave_lag":1040249,"member_last_modified_age":1486558706,"output_term":"creative"},"proxy":true}}}'
|
157
|
+
http_version:
|
158
|
+
recorded_at: Wed, 08 Feb 2017 12:58:25 GMT
|
159
|
+
- request:
|
160
|
+
method: put
|
161
|
+
uri: https://api-test.appnexus.com/creative?advertiser_id=1561319&id=62215801
|
162
|
+
body:
|
163
|
+
encoding: UTF-8
|
164
|
+
string: '{"creative":{"code":"abc"}}'
|
165
|
+
headers:
|
166
|
+
User-Agent:
|
167
|
+
- Faraday v0.11.0
|
168
|
+
Authorization:
|
169
|
+
- hbapi:171678:589b15f13b41a:nym2
|
170
|
+
Content-Type:
|
171
|
+
- application/json
|
172
|
+
Accept-Encoding:
|
173
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
174
|
+
Accept:
|
175
|
+
- "*/*"
|
176
|
+
response:
|
177
|
+
status:
|
178
|
+
code: 200
|
179
|
+
message: OK
|
180
|
+
headers:
|
181
|
+
Content-Length:
|
182
|
+
- '3047'
|
183
|
+
Content-Type:
|
184
|
+
- application/json
|
185
|
+
X-Count-Read:
|
186
|
+
- user:7,member:3,serviceHostUser:1,serviceHostMember:1,hostUser:1,hostMember:1,ip:0
|
187
|
+
X-Count-Write:
|
188
|
+
- user:8,member:8,serviceHostUser:3,serviceHostMember:3,hostUser:3,hostMember:3,ip:0
|
189
|
+
X-Ratelimit-Read:
|
190
|
+
- '1000'
|
191
|
+
X-Ratelimit-Service:
|
192
|
+
- 1000-Default
|
193
|
+
X-Ratelimit-System:
|
194
|
+
- 1000-Default
|
195
|
+
X-Ratelimit-Write:
|
196
|
+
- '1000'
|
197
|
+
X-Route:
|
198
|
+
- "/creative"
|
199
|
+
X-Route-Time:
|
200
|
+
- '803'
|
201
|
+
body:
|
202
|
+
encoding: UTF-8
|
203
|
+
string: '{"response":{"status":"OK","count":1,"id":"62215801","start_element":0,"num_elements":100,"creative":{"name":"rspec
|
204
|
+
test creative","brand_id":1,"media_url":null,"id":62215801,"code":"abc","code2":null,"member_id":487,"state":"active","click_track_result":"not_tested","advertiser_id":1561319,"publisher_id":null,"format":"iframe-html","width":300,"height":250,"click_url":null,"flash_click_variable":null,"no_iframes":false,"content":"<iframe
|
205
|
+
src=\"helloword.html\"><\/iframe>","original_content":null,"file_name":null,"track_clicks":true,"audit_status":"pending","macros":null,"profile_id":null,"audit_feedback":null,"is_prohibited":false,"created_on":"2017-02-08
|
206
|
+
12:58:26","flash_backup_url":null,"last_modified":"2017-02-08 12:58:27","is_control":false,"allow_audit":true,"is_expired":false,"creative_upload_status":null,"backup_upload_status":null,"use_dynamic_click_url":false,"media_subtypes":["banner"],"size_in_bytes":0,"is_self_audited":false,"no_adservers":false,"text_title":null,"text_description":null,"text_display_url":null,"click_action":"click-to-web","click_target":null,"ssl_status":"disabled","allow_ssl_audit":false,"media_url_secure":null,"content_secure":null,"original_content_secure":null,"flash_backup_url_secure":null,"is_hosted":false,"content_source":"standard","lifetime_budget":null,"lifetime_budget_imps":null,"daily_budget":null,"daily_budget_imps":null,"enable_pacing":null,"allow_safety_pacing":null,"landing_page_url":null,"thirdparty_creative_id":null,"thirdparty_campaign_id":null,"facebook_audit_status":null,"facebook_audit_feedback":null,"custom_request_template":null,"language":{"id":1,"name":"English"},"pop_values":null,"brand":{"id":1,"name":"Unknown","category_id":0},"template":{"id":7,"name":"Standard","media_subtype_id":1,"format_id":7},"ios_ssl_audit":null,"adx_audit":null,"thirdparty_page":null,"custom_macros":null,"segments":null,"folder":null,"campaigns":null,"line_items":null,"competitive_brands":null,"competitive_categories":null,"pixels":null,"mobile":null,"video_attribute":null,"media_assets":null,"sla":null,"thirdparty_pixels":null,"native":null,"click_trackers":null,"impression_trackers":null,"thirdparty_viewability_providers":null,"status":{"user_ready":true,"hosted_assets_association_complete":null},"sla_eta":null,"currency":"USD","type":"standard"},"dbg_info":{"instance":"01.creative-api.test104169.nym2","db":"","output_term":"creative","parent_dbg_info":{"instance":"01.hbapi.test104169.nym2","slave_hit":false,"db":"master","user::reads":7,"user::read_limit":1000,"user::read_limit_seconds":60,"user::writes":8,"user::write_limit":1000,"user::write_limit_seconds":60,"reads":3,"read_limit":1000,"read_limit_seconds":60,"writes":8,"write_limit":1000,"write_limit_seconds":60,"awesomesauce_cache_used":false,"count_cache_used":true,"uuid":"64b736c8-5d07-5098-a9f9-d48dfd4635d3","warnings":[],"time":654.53481674194,"start_microtime":1.4865587077803E9,"version":"1.17.202","slave_lag":1040249,"member_last_modified_age":1486558707,"output_term":"creative"},"proxy":true}}}'
|
207
|
+
http_version:
|
208
|
+
recorded_at: Wed, 08 Feb 2017 12:58:26 GMT
|
209
|
+
- request:
|
210
|
+
method: delete
|
211
|
+
uri: https://api-test.appnexus.com/advertiser?id=1561319
|
212
|
+
body:
|
213
|
+
encoding: US-ASCII
|
214
|
+
string: ''
|
215
|
+
headers:
|
216
|
+
User-Agent:
|
217
|
+
- Faraday v0.11.0
|
218
|
+
Authorization:
|
219
|
+
- hbapi:171678:589b15f13b41a:nym2
|
220
|
+
Accept-Encoding:
|
221
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
222
|
+
Accept:
|
223
|
+
- "*/*"
|
224
|
+
response:
|
225
|
+
status:
|
226
|
+
code: 200
|
227
|
+
message: OK
|
228
|
+
headers:
|
229
|
+
Cache-Control:
|
230
|
+
- no-store, no-cache, must-revalidate, post-check=0, pre-check=0;no-cache
|
231
|
+
Content-Length:
|
232
|
+
- '695'
|
233
|
+
Content-Type:
|
234
|
+
- application/json
|
235
|
+
Date:
|
236
|
+
- Wed, 08 Feb 2017 12:58:29 GMT
|
237
|
+
Expires:
|
238
|
+
- Thu, 19 Nov 1981 08:52:00 GMT
|
239
|
+
Pragma:
|
240
|
+
- no-cache
|
241
|
+
Server:
|
242
|
+
- Apache
|
243
|
+
Set-Cookie:
|
244
|
+
- HBFAPI_SESSID=hbapi%3A171678%3A589b15f13b41a%3Anym2; Path=/
|
245
|
+
X-Count-Read:
|
246
|
+
- user:7,member:3,serviceHostUser:1,serviceHostMember:1,hostUser:2,hostMember:2,ip:0
|
247
|
+
X-Count-Write:
|
248
|
+
- user:9,member:9,serviceHostUser:6,serviceHostMember:6,hostUser:6,hostMember:6,ip:0
|
249
|
+
X-Ratelimit-Read:
|
250
|
+
- '1000'
|
251
|
+
X-Ratelimit-Service:
|
252
|
+
- 1000-Default
|
253
|
+
X-Ratelimit-System:
|
254
|
+
- 1000-Default
|
255
|
+
X-Ratelimit-Write:
|
256
|
+
- '1000'
|
257
|
+
X-Route:
|
258
|
+
- "/advertiser"
|
259
|
+
X-Route-Time:
|
260
|
+
- '1166'
|
261
|
+
body:
|
262
|
+
encoding: UTF-8
|
263
|
+
string: '{"response":{"status":"OK","count":1,"start_element":null,"num_elements":null,"dbg_info":{"instance":"01.hbapi.test104169.nym2","slave_hit":true,"db":"10.3.204.17","user::reads":7,"user::read_limit":1000,"user::read_limit_seconds":60,"user::writes":9,"user::write_limit":1000,"user::write_limit_seconds":60,"reads":3,"read_limit":1000,"read_limit_seconds":60,"writes":9,"write_limit":1000,"write_limit_seconds":60,"awesomesauce_cache_used":false,"count_cache_used":false,"uuid":"f35b5ed3-c1cc-5de5-851d-6911681a5145","warnings":[],"time":1147.4239826202,"start_microtime":1486558709.0106,"version":"1.17.202","slave_lag":1040249,"member_last_modified_age":1486558709,"output_term":"not_found"}}}'
|
264
|
+
http_version:
|
265
|
+
recorded_at: Wed, 08 Feb 2017 12:58:28 GMT
|
266
|
+
recorded_with: VCR 3.0.3
|
@@ -0,0 +1,105 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://api-test.appnexus.com/auth
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"auth":{"username":"<APPNEXUS_USERNAME>","password":"<APPNEXUS_PASSWORD>"}}'
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.11.0
|
12
|
+
Content-Type:
|
13
|
+
- application/json
|
14
|
+
Accept-Encoding:
|
15
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
16
|
+
Accept:
|
17
|
+
- "*/*"
|
18
|
+
response:
|
19
|
+
status:
|
20
|
+
code: 200
|
21
|
+
message: OK
|
22
|
+
headers:
|
23
|
+
Cache-Control:
|
24
|
+
- no-store, no-cache, must-revalidate, post-check=0, pre-check=0;no-cache
|
25
|
+
Content-Length:
|
26
|
+
- '699'
|
27
|
+
Content-Type:
|
28
|
+
- application/json
|
29
|
+
Date:
|
30
|
+
- Wed, 08 Feb 2017 12:59:35 GMT
|
31
|
+
Expires:
|
32
|
+
- Thu, 19 Nov 1981 08:52:00 GMT
|
33
|
+
Pragma:
|
34
|
+
- no-cache
|
35
|
+
Server:
|
36
|
+
- Apache
|
37
|
+
Set-Cookie:
|
38
|
+
- HBFAPI_SESSID=hbapi%3A171678%3A589b1639186dc%3Anym2; Path=/
|
39
|
+
X-Route:
|
40
|
+
- "/auth"
|
41
|
+
X-Route-Time:
|
42
|
+
- '1375'
|
43
|
+
body:
|
44
|
+
encoding: UTF-8
|
45
|
+
string: '{"response":{"status":"OK","token":"hbapi:171678:589b1639186dc:nym2","dbg_info":{"instance":"01.hbapi.test104169.nym2","slave_hit":false,"db":"master","parent_dbg_info":{"instance":"01.api.test104169.nym2","slave_hit":false,"db":"master","awesomesauce_cache_used":false,"count_cache_used":false,"uuid":"f894949b-cc8a-537e-9c16-305f72d16ba6","warnings":[],"time":795.89915275574,"start_microtime":1486558775.9782,"version":"1.17","output_term":"not_found"},"awesomesauce_cache_used":false,"count_cache_used":false,"uuid":"50617f5e-f08e-55cc-abb9-489e7c823648","warnings":[],"time":1363.2390499115,"start_microtime":1486558775.9556,"version":"1.17.202","slave_lag":1040318,"output_term":"not_found"}}}'
|
46
|
+
http_version:
|
47
|
+
recorded_at: Wed, 08 Feb 2017 12:59:35 GMT
|
48
|
+
- request:
|
49
|
+
method: get
|
50
|
+
uri: https://api-test.appnexus.com/object-limit?num_elements=100&object_type=domain_list&start_element=0
|
51
|
+
body:
|
52
|
+
encoding: US-ASCII
|
53
|
+
string: ''
|
54
|
+
headers:
|
55
|
+
User-Agent:
|
56
|
+
- Faraday v0.11.0
|
57
|
+
Authorization:
|
58
|
+
- hbapi:171678:589b1639186dc:nym2
|
59
|
+
Accept-Encoding:
|
60
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
61
|
+
Accept:
|
62
|
+
- "*/*"
|
63
|
+
response:
|
64
|
+
status:
|
65
|
+
code: 200
|
66
|
+
message: OK
|
67
|
+
headers:
|
68
|
+
Cache-Control:
|
69
|
+
- no-store, no-cache, must-revalidate, post-check=0, pre-check=0;no-cache
|
70
|
+
Content-Length:
|
71
|
+
- '878'
|
72
|
+
Content-Type:
|
73
|
+
- application/json
|
74
|
+
Date:
|
75
|
+
- Wed, 08 Feb 2017 12:59:37 GMT
|
76
|
+
Expires:
|
77
|
+
- Thu, 19 Nov 1981 08:52:00 GMT
|
78
|
+
Pragma:
|
79
|
+
- no-cache
|
80
|
+
Server:
|
81
|
+
- Apache
|
82
|
+
Set-Cookie:
|
83
|
+
- HBFAPI_SESSID=hbapi%3A171678%3A589b1639186dc%3Anym2; Path=/
|
84
|
+
X-Count-Read:
|
85
|
+
- user:16,member:7,serviceHostUser:3,serviceHostMember:3,hostUser:7,hostMember:7,ip:0
|
86
|
+
X-Count-Write:
|
87
|
+
- user:6,member:6,serviceHostUser:0,serviceHostMember:0,hostUser:6,hostMember:6,ip:0
|
88
|
+
X-Ratelimit-Read:
|
89
|
+
- '1000'
|
90
|
+
X-Ratelimit-Service:
|
91
|
+
- 1000-Default
|
92
|
+
X-Ratelimit-System:
|
93
|
+
- 1000-Default
|
94
|
+
X-Ratelimit-Write:
|
95
|
+
- '1000'
|
96
|
+
X-Route:
|
97
|
+
- "/object-limit"
|
98
|
+
X-Route-Time:
|
99
|
+
- '31'
|
100
|
+
body:
|
101
|
+
encoding: UTF-8
|
102
|
+
string: '{"response":{"status":"OK","start_element":null,"num_elements":null,"object-limits":[{"object_type":"domain_list","limit":null,"mapping_limits":{"domains":30000},"count_active":null,"count_inactive":null,"count_total":null}],"count":null,"dbg_info":{"instance":"01.hbapi.test104169.nym2","slave_hit":false,"db":"master","user::reads":16,"user::read_limit":1000,"user::read_limit_seconds":60,"user::writes":6,"user::write_limit":1000,"user::write_limit_seconds":60,"reads":7,"read_limit":1000,"read_limit_seconds":60,"writes":6,"write_limit":1000,"write_limit_seconds":60,"awesomesauce_cache_used":false,"count_cache_used":false,"uuid":"0e3ae3c3-e112-5ddb-9949-03eca64a22b6","warnings":[],"time":19.840002059937,"start_microtime":1486558777.8161,"version":"1.17.202","slave_miss":"no_slaves_found","slave_lag":1040319,"member_last_modified_age":4,"output_term":"object-limits"}}}'
|
103
|
+
http_version:
|
104
|
+
recorded_at: Wed, 08 Feb 2017 12:59:35 GMT
|
105
|
+
recorded_with: VCR 3.0.3
|
@@ -0,0 +1,521 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://api-test.appnexus.com/auth
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"auth":{"username":"<APPNEXUS_USERNAME>","password":"<APPNEXUS_PASSWORD>"}}'
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.11.0
|
12
|
+
Content-Type:
|
13
|
+
- application/json
|
14
|
+
Accept-Encoding:
|
15
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
16
|
+
Accept:
|
17
|
+
- "*/*"
|
18
|
+
response:
|
19
|
+
status:
|
20
|
+
code: 200
|
21
|
+
message: OK
|
22
|
+
headers:
|
23
|
+
Cache-Control:
|
24
|
+
- no-store, no-cache, must-revalidate, post-check=0, pre-check=0;no-cache
|
25
|
+
Content-Length:
|
26
|
+
- '699'
|
27
|
+
Content-Type:
|
28
|
+
- application/json
|
29
|
+
Date:
|
30
|
+
- Wed, 08 Feb 2017 12:58:53 GMT
|
31
|
+
Expires:
|
32
|
+
- Thu, 19 Nov 1981 08:52:00 GMT
|
33
|
+
Pragma:
|
34
|
+
- no-cache
|
35
|
+
Server:
|
36
|
+
- Apache
|
37
|
+
Set-Cookie:
|
38
|
+
- HBFAPI_SESSID=hbapi%3A171678%3A589b160f1f90a%3Anym2; Path=/
|
39
|
+
X-Route:
|
40
|
+
- "/auth"
|
41
|
+
X-Route-Time:
|
42
|
+
- '1328'
|
43
|
+
body:
|
44
|
+
encoding: UTF-8
|
45
|
+
string: '{"response":{"status":"OK","token":"hbapi:171678:589b160f1f90a:nym2","dbg_info":{"instance":"01.hbapi.test104169.nym2","slave_hit":false,"db":"master","parent_dbg_info":{"instance":"01.api.test104169.nym2","slave_hit":false,"db":"master","awesomesauce_cache_used":false,"count_cache_used":false,"uuid":"73c3d4cf-5afb-5419-aa39-8e2b1c7c0302","warnings":[],"time":794.63195800781,"start_microtime":1486558734.0003,"version":"1.17","output_term":"not_found"},"awesomesauce_cache_used":false,"count_cache_used":false,"uuid":"485be575-21d1-5ec7-af65-db9a6d03db0c","warnings":[],"time":1315.5059814453,"start_microtime":1486558733.9748,"version":"1.17.202","slave_lag":1040269,"output_term":"not_found"}}}'
|
46
|
+
http_version:
|
47
|
+
recorded_at: Wed, 08 Feb 2017 12:58:53 GMT
|
48
|
+
- request:
|
49
|
+
method: post
|
50
|
+
uri: https://api-test.appnexus.com/advertiser
|
51
|
+
body:
|
52
|
+
encoding: UTF-8
|
53
|
+
string: '{"advertiser":{"name":"rspec advertiser"}}'
|
54
|
+
headers:
|
55
|
+
User-Agent:
|
56
|
+
- Faraday v0.11.0
|
57
|
+
Authorization:
|
58
|
+
- hbapi:171678:589b160f1f90a:nym2
|
59
|
+
Content-Type:
|
60
|
+
- application/json
|
61
|
+
Accept-Encoding:
|
62
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
63
|
+
Accept:
|
64
|
+
- "*/*"
|
65
|
+
response:
|
66
|
+
status:
|
67
|
+
code: 200
|
68
|
+
message: OK
|
69
|
+
headers:
|
70
|
+
Cache-Control:
|
71
|
+
- no-store, no-cache, must-revalidate, post-check=0, pre-check=0;no-cache
|
72
|
+
Content-Length:
|
73
|
+
- '1645'
|
74
|
+
Content-Type:
|
75
|
+
- application/json
|
76
|
+
Date:
|
77
|
+
- Wed, 08 Feb 2017 12:58:55 GMT
|
78
|
+
Expires:
|
79
|
+
- Thu, 19 Nov 1981 08:52:00 GMT
|
80
|
+
Pragma:
|
81
|
+
- no-cache
|
82
|
+
Server:
|
83
|
+
- Apache
|
84
|
+
Set-Cookie:
|
85
|
+
- HBFAPI_SESSID=hbapi%3A171678%3A589b160f1f90a%3Anym2; Path=/
|
86
|
+
X-Count-Read:
|
87
|
+
- user:18,member:9,serviceHostUser:2,serviceHostMember:2,hostUser:6,hostMember:6,ip:0
|
88
|
+
X-Count-Write:
|
89
|
+
- user:25,member:25,serviceHostUser:11,serviceHostMember:11,hostUser:20,hostMember:20,ip:0
|
90
|
+
X-Ratelimit-Read:
|
91
|
+
- '1000'
|
92
|
+
X-Ratelimit-Service:
|
93
|
+
- 1000-Default
|
94
|
+
X-Ratelimit-System:
|
95
|
+
- 1000-Default
|
96
|
+
X-Ratelimit-Write:
|
97
|
+
- '1000'
|
98
|
+
X-Route:
|
99
|
+
- "/advertiser"
|
100
|
+
X-Route-Time:
|
101
|
+
- '252'
|
102
|
+
body:
|
103
|
+
encoding: UTF-8
|
104
|
+
string: '{"response":{"status":"OK","count":1,"id":1561323,"start_element":0,"num_elements":100,"advertiser":{"id":1561323,"code":null,"name":"rspec
|
105
|
+
advertiser","state":"active","default_brand_id":null,"remarketing_segment_id":null,"profile_id":null,"control_pct":0,"timezone":"EST5EDT","last_modified":"2017-02-08
|
106
|
+
12:58:55","member_id":487,"billing_name":null,"billing_phone":null,"billing_address1":null,"billing_address2":null,"billing_city":null,"billing_state":null,"billing_country":null,"billing_zip":null,"default_currency":"USD","use_insertion_orders":false,"time_format":"12-hour","is_malicious":false,"is_mediated":false,"billing_internal_user":null,"default_category":null,"default_brand":null,"labels":null,"competitive_brands":null,"competitive_categories":null,"thirdparty_pixels":null,"macros":null,"lifetime_budget":null,"lifetime_budget_imps":null,"daily_budget":null,"daily_budget_imps":null,"enable_pacing":null,"allow_safety_pacing":null,"lifetime_pacing":null,"lifetime_pacing_span":null,"lifetime_pacing_pct":null},"dbg_info":{"instance":"01.hbapi.test104169.nym2","slave_hit":false,"db":"master","user::reads":18,"user::read_limit":1000,"user::read_limit_seconds":60,"user::writes":25,"user::write_limit":1000,"user::write_limit_seconds":60,"reads":9,"read_limit":1000,"read_limit_seconds":60,"writes":25,"write_limit":1000,"write_limit_seconds":60,"awesomesauce_cache_used":false,"count_cache_used":true,"uuid":"fb841c02-6eb3-5ed7-b5d4-a0030996607e","warnings":[],"time":235.15582084656,"start_microtime":1486558735.6708,"version":"1.17.202","slave_lag":1040278,"member_last_modified_age":1486558735,"output_term":"advertiser"}}}'
|
107
|
+
http_version:
|
108
|
+
recorded_at: Wed, 08 Feb 2017 12:58:54 GMT
|
109
|
+
- request:
|
110
|
+
method: get
|
111
|
+
uri: https://api-test.appnexus.com/line-item?advertiser_id=1561323&num_elements=100&start_element=0
|
112
|
+
body:
|
113
|
+
encoding: US-ASCII
|
114
|
+
string: ''
|
115
|
+
headers:
|
116
|
+
User-Agent:
|
117
|
+
- Faraday v0.11.0
|
118
|
+
Authorization:
|
119
|
+
- hbapi:171678:589b160f1f90a:nym2
|
120
|
+
Accept-Encoding:
|
121
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
122
|
+
Accept:
|
123
|
+
- "*/*"
|
124
|
+
response:
|
125
|
+
status:
|
126
|
+
code: 200
|
127
|
+
message: OK
|
128
|
+
headers:
|
129
|
+
Cache-Control:
|
130
|
+
- no-store, no-cache, must-revalidate, post-check=0, pre-check=0;no-cache
|
131
|
+
Content-Length:
|
132
|
+
- '731'
|
133
|
+
Content-Type:
|
134
|
+
- application/json
|
135
|
+
Date:
|
136
|
+
- Wed, 08 Feb 2017 12:58:56 GMT
|
137
|
+
Expires:
|
138
|
+
- Thu, 19 Nov 1981 08:52:00 GMT
|
139
|
+
Pragma:
|
140
|
+
- no-cache
|
141
|
+
Server:
|
142
|
+
- Apache
|
143
|
+
Set-Cookie:
|
144
|
+
- HBFAPI_SESSID=hbapi%3A171678%3A589b160f1f90a%3Anym2; Path=/
|
145
|
+
X-Count-Read:
|
146
|
+
- user:19,member:10,serviceHostUser:1,serviceHostMember:1,hostUser:7,hostMember:7,ip:0
|
147
|
+
X-Count-Write:
|
148
|
+
- user:25,member:25,serviceHostUser:2,serviceHostMember:2,hostUser:20,hostMember:20,ip:0
|
149
|
+
X-Ratelimit-Read:
|
150
|
+
- '1000'
|
151
|
+
X-Ratelimit-Service:
|
152
|
+
- 1000-Default
|
153
|
+
X-Ratelimit-System:
|
154
|
+
- 1000-Default
|
155
|
+
X-Ratelimit-Write:
|
156
|
+
- '1000'
|
157
|
+
X-Route:
|
158
|
+
- "/line-item"
|
159
|
+
X-Route-Time:
|
160
|
+
- '29'
|
161
|
+
body:
|
162
|
+
encoding: UTF-8
|
163
|
+
string: '{"response":{"status":"OK","start_element":0,"num_elements":100,"line-items":[],"count":0,"dbg_info":{"instance":"01.hbapi.test104169.nym2","slave_hit":false,"db":"master","user::reads":19,"user::read_limit":1000,"user::read_limit_seconds":60,"user::writes":25,"user::write_limit":1000,"user::write_limit_seconds":60,"reads":10,"read_limit":1000,"read_limit_seconds":60,"writes":25,"write_limit":1000,"write_limit_seconds":60,"awesomesauce_cache_used":false,"count_cache_used":false,"uuid":"16fe4aba-7aae-5165-8c5c-7b3f1d364b45","warnings":[],"time":19.591093063354,"start_microtime":1486558736.4667,"version":"1.17.202","slave_miss":"no_slaves_found","slave_lag":1040279,"member_last_modified_age":11,"output_term":"line-items"}}}'
|
164
|
+
http_version:
|
165
|
+
recorded_at: Wed, 08 Feb 2017 12:58:54 GMT
|
166
|
+
- request:
|
167
|
+
method: post
|
168
|
+
uri: https://api-test.appnexus.com/line-item?advertiser_id=1561323
|
169
|
+
body:
|
170
|
+
encoding: UTF-8
|
171
|
+
string: '{"line-item":{"name":"some line item","code":"spec_line_code"}}'
|
172
|
+
headers:
|
173
|
+
User-Agent:
|
174
|
+
- Faraday v0.11.0
|
175
|
+
Authorization:
|
176
|
+
- hbapi:171678:589b160f1f90a:nym2
|
177
|
+
Content-Type:
|
178
|
+
- application/json
|
179
|
+
Accept-Encoding:
|
180
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
181
|
+
Accept:
|
182
|
+
- "*/*"
|
183
|
+
response:
|
184
|
+
status:
|
185
|
+
code: 200
|
186
|
+
message: OK
|
187
|
+
headers:
|
188
|
+
Cache-Control:
|
189
|
+
- no-store, no-cache, must-revalidate, post-check=0, pre-check=0;no-cache
|
190
|
+
Content-Length:
|
191
|
+
- '2176'
|
192
|
+
Content-Type:
|
193
|
+
- application/json
|
194
|
+
Date:
|
195
|
+
- Wed, 08 Feb 2017 12:58:56 GMT
|
196
|
+
Expires:
|
197
|
+
- Thu, 19 Nov 1981 08:52:00 GMT
|
198
|
+
Pragma:
|
199
|
+
- no-cache
|
200
|
+
Server:
|
201
|
+
- Apache
|
202
|
+
Set-Cookie:
|
203
|
+
- HBFAPI_SESSID=hbapi%3A171678%3A589b160f1f90a%3Anym2; Path=/
|
204
|
+
X-Count-Read:
|
205
|
+
- user:19,member:10,serviceHostUser:1,serviceHostMember:1,hostUser:7,hostMember:7,ip:0
|
206
|
+
X-Count-Write:
|
207
|
+
- user:26,member:26,serviceHostUser:3,serviceHostMember:3,hostUser:21,hostMember:21,ip:0
|
208
|
+
X-Ratelimit-Read:
|
209
|
+
- '1000'
|
210
|
+
X-Ratelimit-Service:
|
211
|
+
- 1000-Default
|
212
|
+
X-Ratelimit-System:
|
213
|
+
- 1000-Default
|
214
|
+
X-Ratelimit-Write:
|
215
|
+
- '1000'
|
216
|
+
X-Route:
|
217
|
+
- "/line-item"
|
218
|
+
X-Route-Time:
|
219
|
+
- '324'
|
220
|
+
body:
|
221
|
+
encoding: UTF-8
|
222
|
+
string: '{"response":{"status":"OK","count":1,"id":3764157,"start_element":0,"num_elements":100,"line-item":{"id":3764157,"code":"spec_line_code","name":"some
|
223
|
+
line item","advertiser_id":1561323,"state":"active","start_date":null,"end_date":null,"timezone":"EST5EDT","discrepancy_pct":0,"publishers_allowed":"all","revenue_value":0,"revenue_type":"cpm","goal_type":"none","goal_value":null,"last_modified":"2017-02-08
|
224
|
+
12:58:56","click_url":null,"currency":"USD","require_cookie_for_tracking":true,"profile_id":null,"member_id":487,"flat_fee_type":null,"comments":null,"remaining_days":null,"total_days":null,"manage_creative":false,"creative_distribution_type":null,"line_item_type":"standard_v1","prefer_delivery_over_performance":false,"advertiser":{"id":1561323,"name":"rspec
|
225
|
+
advertiser"},"flat_fee":null,"delivery_goal":null,"labels":null,"broker_fees":null,"pixels":null,"insertion_orders":null,"goal_pixels":null,"imptrackers":null,"clicktrackers":null,"campaigns":null,"valuation":{"performance_offer":false,"performance_mkt_managed":false,"performance_mkt_crossnet":false},"creatives":null,"budget_intervals":null,"click_model":null,"expected_value_model":null,"custom_models":null,"inventory_discovery":null,"inventory_discovery_budget":null,"incrementality":null,"auction_event":null,"custom_optimization_note":null,"lifetime_budget":null,"lifetime_budget_imps":null,"daily_budget":null,"daily_budget_imps":null,"enable_pacing":null,"allow_safety_pacing":null,"lifetime_pacing":null,"lifetime_pacing_span":null,"lifetime_pacing_pct":null,"payout_margin":null},"dbg_info":{"instance":"01.hbapi.test104169.nym2","slave_hit":false,"db":"master","user::reads":19,"user::read_limit":1000,"user::read_limit_seconds":60,"user::writes":26,"user::write_limit":1000,"user::write_limit_seconds":60,"reads":10,"read_limit":1000,"read_limit_seconds":60,"writes":26,"write_limit":1000,"write_limit_seconds":60,"awesomesauce_cache_used":false,"count_cache_used":true,"uuid":"8a2df0db-b36d-554e-b5ab-1dd379056d62","warnings":[],"time":305.38010597229,"start_microtime":1486558736.8657,"version":"1.17.202","slave_lag":1040279,"member_last_modified_age":1486558736,"output_term":"line-item"}}}'
|
226
|
+
http_version:
|
227
|
+
recorded_at: Wed, 08 Feb 2017 12:58:55 GMT
|
228
|
+
- request:
|
229
|
+
method: get
|
230
|
+
uri: https://api-test.appnexus.com/line-item?advertiser_id=1561323&num_elements=100&start_element=0
|
231
|
+
body:
|
232
|
+
encoding: US-ASCII
|
233
|
+
string: ''
|
234
|
+
headers:
|
235
|
+
User-Agent:
|
236
|
+
- Faraday v0.11.0
|
237
|
+
Authorization:
|
238
|
+
- hbapi:171678:589b160f1f90a:nym2
|
239
|
+
Accept-Encoding:
|
240
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
241
|
+
Accept:
|
242
|
+
- "*/*"
|
243
|
+
response:
|
244
|
+
status:
|
245
|
+
code: 200
|
246
|
+
message: OK
|
247
|
+
headers:
|
248
|
+
Cache-Control:
|
249
|
+
- no-store, no-cache, must-revalidate, post-check=0, pre-check=0;no-cache
|
250
|
+
Content-Length:
|
251
|
+
- '2190'
|
252
|
+
Content-Type:
|
253
|
+
- application/json
|
254
|
+
Date:
|
255
|
+
- Wed, 08 Feb 2017 12:58:57 GMT
|
256
|
+
Expires:
|
257
|
+
- Thu, 19 Nov 1981 08:52:00 GMT
|
258
|
+
Pragma:
|
259
|
+
- no-cache
|
260
|
+
Server:
|
261
|
+
- Apache
|
262
|
+
Set-Cookie:
|
263
|
+
- HBFAPI_SESSID=hbapi%3A171678%3A589b160f1f90a%3Anym2; Path=/
|
264
|
+
X-Count-Read:
|
265
|
+
- user:20,member:11,serviceHostUser:2,serviceHostMember:2,hostUser:8,hostMember:8,ip:0
|
266
|
+
X-Count-Write:
|
267
|
+
- user:26,member:26,serviceHostUser:3,serviceHostMember:3,hostUser:21,hostMember:21,ip:0
|
268
|
+
X-Ratelimit-Read:
|
269
|
+
- '1000'
|
270
|
+
X-Ratelimit-Service:
|
271
|
+
- 1000-Default
|
272
|
+
X-Ratelimit-System:
|
273
|
+
- 1000-Default
|
274
|
+
X-Ratelimit-Write:
|
275
|
+
- '1000'
|
276
|
+
X-Route:
|
277
|
+
- "/line-item"
|
278
|
+
X-Route-Time:
|
279
|
+
- '64'
|
280
|
+
body:
|
281
|
+
encoding: UTF-8
|
282
|
+
string: '{"response":{"status":"OK","start_element":0,"num_elements":100,"line-items":[{"id":3764157,"code":"spec_line_code","name":"some
|
283
|
+
line item","advertiser_id":1561323,"state":"active","start_date":null,"end_date":null,"timezone":"EST5EDT","discrepancy_pct":0,"publishers_allowed":"all","revenue_value":0,"revenue_type":"cpm","goal_type":"none","goal_value":null,"last_modified":"2017-02-08
|
284
|
+
12:58:56","click_url":null,"currency":"USD","require_cookie_for_tracking":true,"profile_id":null,"member_id":487,"flat_fee_type":null,"comments":null,"remaining_days":null,"total_days":null,"manage_creative":false,"creative_distribution_type":null,"line_item_type":"standard_v1","prefer_delivery_over_performance":false,"advertiser":{"id":1561323,"name":"rspec
|
285
|
+
advertiser"},"flat_fee":null,"delivery_goal":null,"labels":null,"broker_fees":null,"pixels":null,"insertion_orders":null,"goal_pixels":null,"imptrackers":null,"clicktrackers":null,"campaigns":null,"valuation":{"performance_offer":false,"performance_mkt_managed":false,"performance_mkt_crossnet":false},"creatives":null,"budget_intervals":null,"click_model":null,"expected_value_model":null,"custom_models":null,"inventory_discovery":null,"inventory_discovery_budget":null,"incrementality":null,"auction_event":null,"custom_optimization_note":null,"lifetime_budget":null,"lifetime_budget_imps":null,"daily_budget":null,"daily_budget_imps":null,"enable_pacing":null,"allow_safety_pacing":null,"lifetime_pacing":null,"lifetime_pacing_span":null,"lifetime_pacing_pct":null,"payout_margin":null}],"count":1,"dbg_info":{"instance":"01.hbapi.test104169.nym2","slave_hit":false,"db":"master","user::reads":20,"user::read_limit":1000,"user::read_limit_seconds":60,"user::writes":26,"user::write_limit":1000,"user::write_limit_seconds":60,"reads":11,"read_limit":1000,"read_limit_seconds":60,"writes":26,"write_limit":1000,"write_limit_seconds":60,"awesomesauce_cache_used":false,"count_cache_used":false,"uuid":"0a23befc-4ebf-539e-8434-f00427e38f08","warnings":[],"time":53.385019302368,"start_microtime":1486558737.6864,"version":"1.17.202","slave_miss":"no_slaves_found","slave_lag":1040279,"member_last_modified_age":0,"output_term":"line-items"}}}'
|
286
|
+
http_version:
|
287
|
+
recorded_at: Wed, 08 Feb 2017 12:58:56 GMT
|
288
|
+
- request:
|
289
|
+
method: put
|
290
|
+
uri: https://api-test.appnexus.com/line-item?advertiser_id=1561323&id=3764157
|
291
|
+
body:
|
292
|
+
encoding: UTF-8
|
293
|
+
string: '{"line-item":{"state":"inactive"}}'
|
294
|
+
headers:
|
295
|
+
User-Agent:
|
296
|
+
- Faraday v0.11.0
|
297
|
+
Authorization:
|
298
|
+
- hbapi:171678:589b160f1f90a:nym2
|
299
|
+
Content-Type:
|
300
|
+
- application/json
|
301
|
+
Accept-Encoding:
|
302
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
303
|
+
Accept:
|
304
|
+
- "*/*"
|
305
|
+
response:
|
306
|
+
status:
|
307
|
+
code: 200
|
308
|
+
message: OK
|
309
|
+
headers:
|
310
|
+
Cache-Control:
|
311
|
+
- no-store, no-cache, must-revalidate, post-check=0, pre-check=0;no-cache
|
312
|
+
Content-Length:
|
313
|
+
- '2439'
|
314
|
+
Content-Type:
|
315
|
+
- application/json
|
316
|
+
Date:
|
317
|
+
- Wed, 08 Feb 2017 12:58:58 GMT
|
318
|
+
Expires:
|
319
|
+
- Thu, 19 Nov 1981 08:52:00 GMT
|
320
|
+
Pragma:
|
321
|
+
- no-cache
|
322
|
+
Server:
|
323
|
+
- Apache
|
324
|
+
Set-Cookie:
|
325
|
+
- HBFAPI_SESSID=hbapi%3A171678%3A589b160f1f90a%3Anym2; Path=/
|
326
|
+
X-Count-Read:
|
327
|
+
- user:20,member:11,serviceHostUser:2,serviceHostMember:2,hostUser:8,hostMember:8,ip:0
|
328
|
+
X-Count-Write:
|
329
|
+
- user:27,member:27,serviceHostUser:4,serviceHostMember:4,hostUser:22,hostMember:22,ip:0
|
330
|
+
X-Ratelimit-Read:
|
331
|
+
- '1000'
|
332
|
+
X-Ratelimit-Service:
|
333
|
+
- 1000-Default
|
334
|
+
X-Ratelimit-System:
|
335
|
+
- 1000-Default
|
336
|
+
X-Ratelimit-Write:
|
337
|
+
- '1000'
|
338
|
+
X-Route:
|
339
|
+
- "/line-item"
|
340
|
+
X-Route-Time:
|
341
|
+
- '597'
|
342
|
+
body:
|
343
|
+
encoding: UTF-8
|
344
|
+
string: '{"response":{"status":"OK","count":1,"id":"3764157","start_element":0,"num_elements":100,"line-item":{"id":3764157,"code":"spec_line_code","name":"some
|
345
|
+
line item","advertiser_id":1561323,"state":"inactive","start_date":null,"end_date":null,"timezone":"EST5EDT","discrepancy_pct":0,"publishers_allowed":"all","revenue_value":0,"revenue_type":"cpm","goal_type":"none","goal_value":null,"last_modified":"2017-02-08
|
346
|
+
12:58:58","click_url":null,"currency":"USD","require_cookie_for_tracking":true,"profile_id":null,"member_id":487,"flat_fee_type":null,"comments":null,"remaining_days":null,"total_days":null,"manage_creative":false,"creative_distribution_type":null,"line_item_type":"standard_v1","prefer_delivery_over_performance":false,"advertiser":{"id":1561323,"name":"rspec
|
347
|
+
advertiser"},"flat_fee":null,"delivery_goal":null,"labels":null,"broker_fees":null,"pixels":null,"insertion_orders":null,"goal_pixels":null,"imptrackers":null,"clicktrackers":null,"campaigns":null,"valuation":{"min_margin_pct":null,"max_avg_cpm":null,"min_avg_cpm":null,"goal_target":null,"goal_threshold":null,"no_revenue_log":false,"performance_offer":false,"performance_mkt_managed":false,"performance_mkt_crossnet":false,"bid_price_pacing_enabled":false,"bid_price_pacing_lever":0,"campaign_group_valuation_strategy":null,"goal_confidence_threshold":null},"creatives":null,"budget_intervals":null,"click_model":null,"expected_value_model":null,"custom_models":null,"inventory_discovery":null,"inventory_discovery_budget":null,"incrementality":null,"auction_event":null,"custom_optimization_note":null,"lifetime_budget":null,"lifetime_budget_imps":null,"daily_budget":null,"daily_budget_imps":null,"enable_pacing":null,"allow_safety_pacing":null,"lifetime_pacing":null,"lifetime_pacing_span":null,"lifetime_pacing_pct":null,"payout_margin":null},"dbg_info":{"instance":"01.hbapi.test104169.nym2","slave_hit":false,"db":"master","user::reads":20,"user::read_limit":1000,"user::read_limit_seconds":60,"user::writes":27,"user::write_limit":1000,"user::write_limit_seconds":60,"reads":11,"read_limit":1000,"read_limit_seconds":60,"writes":27,"write_limit":1000,"write_limit_seconds":60,"awesomesauce_cache_used":false,"count_cache_used":false,"uuid":"ece44a90-5d5d-5812-a49d-4c8121d08f4c","warnings":[],"time":578.46903800964,"start_microtime":1486558738.7075,"version":"1.17.202","slave_lag":1040279,"member_last_modified_age":1486558738,"output_term":"line-item"}}}'
|
348
|
+
http_version:
|
349
|
+
recorded_at: Wed, 08 Feb 2017 12:58:57 GMT
|
350
|
+
- request:
|
351
|
+
method: delete
|
352
|
+
uri: https://api-test.appnexus.com/line-item?advertiser_id=1561323&id=3764157
|
353
|
+
body:
|
354
|
+
encoding: US-ASCII
|
355
|
+
string: ''
|
356
|
+
headers:
|
357
|
+
User-Agent:
|
358
|
+
- Faraday v0.11.0
|
359
|
+
Authorization:
|
360
|
+
- hbapi:171678:589b160f1f90a:nym2
|
361
|
+
Accept-Encoding:
|
362
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
363
|
+
Accept:
|
364
|
+
- "*/*"
|
365
|
+
response:
|
366
|
+
status:
|
367
|
+
code: 200
|
368
|
+
message: OK
|
369
|
+
headers:
|
370
|
+
Cache-Control:
|
371
|
+
- no-store, no-cache, must-revalidate, post-check=0, pre-check=0;no-cache
|
372
|
+
Content-Length:
|
373
|
+
- '699'
|
374
|
+
Content-Type:
|
375
|
+
- application/json
|
376
|
+
Date:
|
377
|
+
- Wed, 08 Feb 2017 12:59:00 GMT
|
378
|
+
Expires:
|
379
|
+
- Thu, 19 Nov 1981 08:52:00 GMT
|
380
|
+
Pragma:
|
381
|
+
- no-cache
|
382
|
+
Server:
|
383
|
+
- Apache
|
384
|
+
Set-Cookie:
|
385
|
+
- HBFAPI_SESSID=hbapi%3A171678%3A589b160f1f90a%3Anym2; Path=/
|
386
|
+
X-Count-Read:
|
387
|
+
- user:20,member:11,serviceHostUser:2,serviceHostMember:2,hostUser:8,hostMember:8,ip:0
|
388
|
+
X-Count-Write:
|
389
|
+
- user:28,member:28,serviceHostUser:5,serviceHostMember:5,hostUser:23,hostMember:23,ip:0
|
390
|
+
X-Ratelimit-Read:
|
391
|
+
- '1000'
|
392
|
+
X-Ratelimit-Service:
|
393
|
+
- 1000-Default
|
394
|
+
X-Ratelimit-System:
|
395
|
+
- 1000-Default
|
396
|
+
X-Ratelimit-Write:
|
397
|
+
- '1000'
|
398
|
+
X-Route:
|
399
|
+
- "/line-item"
|
400
|
+
X-Route-Time:
|
401
|
+
- '355'
|
402
|
+
body:
|
403
|
+
encoding: UTF-8
|
404
|
+
string: '{"response":{"status":"OK","count":1,"start_element":null,"num_elements":null,"dbg_info":{"instance":"01.hbapi.test104169.nym2","slave_hit":true,"db":"10.3.204.17","user::reads":20,"user::read_limit":1000,"user::read_limit_seconds":60,"user::writes":28,"user::write_limit":1000,"user::write_limit_seconds":60,"reads":11,"read_limit":1000,"read_limit_seconds":60,"writes":28,"write_limit":1000,"write_limit_seconds":60,"awesomesauce_cache_used":false,"count_cache_used":false,"uuid":"915b1521-05f6-5294-8a6f-d12212ab19e3","warnings":[],"time":338.34910392761,"start_microtime":1486558740.6896,"version":"1.17.202","slave_lag":1040279,"member_last_modified_age":1486558740,"output_term":"not_found"}}}'
|
405
|
+
http_version:
|
406
|
+
recorded_at: Wed, 08 Feb 2017 12:58:59 GMT
|
407
|
+
- request:
|
408
|
+
method: get
|
409
|
+
uri: https://api-test.appnexus.com/line-item?id=3764157&num_elements=100&start_element=0
|
410
|
+
body:
|
411
|
+
encoding: US-ASCII
|
412
|
+
string: ''
|
413
|
+
headers:
|
414
|
+
User-Agent:
|
415
|
+
- Faraday v0.11.0
|
416
|
+
Authorization:
|
417
|
+
- hbapi:171678:589b160f1f90a:nym2
|
418
|
+
Accept-Encoding:
|
419
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
420
|
+
Accept:
|
421
|
+
- "*/*"
|
422
|
+
response:
|
423
|
+
status:
|
424
|
+
code: 200
|
425
|
+
message: OK
|
426
|
+
headers:
|
427
|
+
Cache-Control:
|
428
|
+
- no-store, no-cache, must-revalidate, post-check=0, pre-check=0;no-cache
|
429
|
+
Content-Length:
|
430
|
+
- '820'
|
431
|
+
Content-Type:
|
432
|
+
- application/json
|
433
|
+
Date:
|
434
|
+
- Wed, 08 Feb 2017 12:59:01 GMT
|
435
|
+
Expires:
|
436
|
+
- Thu, 19 Nov 1981 08:52:00 GMT
|
437
|
+
Pragma:
|
438
|
+
- no-cache
|
439
|
+
Server:
|
440
|
+
- Apache
|
441
|
+
Set-Cookie:
|
442
|
+
- HBFAPI_SESSID=hbapi%3A171678%3A589b160f1f90a%3Anym2; Path=/
|
443
|
+
X-Count-Read:
|
444
|
+
- user:21,member:12,serviceHostUser:3,serviceHostMember:3,hostUser:9,hostMember:9,ip:0
|
445
|
+
X-Count-Write:
|
446
|
+
- user:28,member:28,serviceHostUser:5,serviceHostMember:5,hostUser:23,hostMember:23,ip:0
|
447
|
+
X-Ratelimit-Read:
|
448
|
+
- '1000'
|
449
|
+
X-Ratelimit-Service:
|
450
|
+
- 1000-Default
|
451
|
+
X-Ratelimit-System:
|
452
|
+
- 1000-Default
|
453
|
+
X-Ratelimit-Write:
|
454
|
+
- '1000'
|
455
|
+
X-Route:
|
456
|
+
- "/line-item"
|
457
|
+
X-Route-Time:
|
458
|
+
- '32'
|
459
|
+
body:
|
460
|
+
encoding: UTF-8
|
461
|
+
string: '{"response":{"error_id":"SYNTAX","error":"resource not found","error_description":null,"service":null,"method":null,"error_code":null,"count":0,"start_element":0,"num_elements":100,"dbg_info":{"instance":"01.hbapi.test104169.nym2","slave_hit":false,"db":"master","user::reads":21,"user::read_limit":1000,"user::read_limit_seconds":60,"user::writes":28,"user::write_limit":1000,"user::write_limit_seconds":60,"reads":12,"read_limit":1000,"read_limit_seconds":60,"writes":28,"write_limit":1000,"write_limit_seconds":60,"awesomesauce_cache_used":false,"count_cache_used":false,"uuid":"20c221a3-3c7a-5c93-b901-7fb9c59eddad","warnings":[],"time":21.659851074219,"start_microtime":1486558741.5811,"version":"1.17.202","slave_miss":"no_slaves_found","slave_lag":1040284,"member_last_modified_age":0,"output_term":"not_found"}}}'
|
462
|
+
http_version:
|
463
|
+
recorded_at: Wed, 08 Feb 2017 12:58:59 GMT
|
464
|
+
- request:
|
465
|
+
method: delete
|
466
|
+
uri: https://api-test.appnexus.com/advertiser?id=1561323
|
467
|
+
body:
|
468
|
+
encoding: US-ASCII
|
469
|
+
string: ''
|
470
|
+
headers:
|
471
|
+
User-Agent:
|
472
|
+
- Faraday v0.11.0
|
473
|
+
Authorization:
|
474
|
+
- hbapi:171678:589b160f1f90a:nym2
|
475
|
+
Accept-Encoding:
|
476
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
477
|
+
Accept:
|
478
|
+
- "*/*"
|
479
|
+
response:
|
480
|
+
status:
|
481
|
+
code: 200
|
482
|
+
message: OK
|
483
|
+
headers:
|
484
|
+
Cache-Control:
|
485
|
+
- no-store, no-cache, must-revalidate, post-check=0, pre-check=0;no-cache
|
486
|
+
Content-Length:
|
487
|
+
- '699'
|
488
|
+
Content-Type:
|
489
|
+
- application/json
|
490
|
+
Date:
|
491
|
+
- Wed, 08 Feb 2017 12:59:01 GMT
|
492
|
+
Expires:
|
493
|
+
- Thu, 19 Nov 1981 08:52:00 GMT
|
494
|
+
Pragma:
|
495
|
+
- no-cache
|
496
|
+
Server:
|
497
|
+
- Apache
|
498
|
+
Set-Cookie:
|
499
|
+
- HBFAPI_SESSID=hbapi%3A171678%3A589b160f1f90a%3Anym2; Path=/
|
500
|
+
X-Count-Read:
|
501
|
+
- user:21,member:12,serviceHostUser:2,serviceHostMember:2,hostUser:9,hostMember:9,ip:0
|
502
|
+
X-Count-Write:
|
503
|
+
- user:29,member:29,serviceHostUser:12,serviceHostMember:12,hostUser:24,hostMember:24,ip:0
|
504
|
+
X-Ratelimit-Read:
|
505
|
+
- '1000'
|
506
|
+
X-Ratelimit-Service:
|
507
|
+
- 1000-Default
|
508
|
+
X-Ratelimit-System:
|
509
|
+
- 1000-Default
|
510
|
+
X-Ratelimit-Write:
|
511
|
+
- '1000'
|
512
|
+
X-Route:
|
513
|
+
- "/advertiser"
|
514
|
+
X-Route-Time:
|
515
|
+
- '925'
|
516
|
+
body:
|
517
|
+
encoding: UTF-8
|
518
|
+
string: '{"response":{"status":"OK","count":1,"start_element":null,"num_elements":null,"dbg_info":{"instance":"01.hbapi.test104169.nym2","slave_hit":true,"db":"10.3.204.17","user::reads":21,"user::read_limit":1000,"user::read_limit_seconds":60,"user::writes":29,"user::write_limit":1000,"user::write_limit_seconds":60,"reads":12,"read_limit":1000,"read_limit_seconds":60,"writes":29,"write_limit":1000,"write_limit_seconds":60,"awesomesauce_cache_used":false,"count_cache_used":false,"uuid":"c05ae6fa-5789-52c0-b489-b1aea1843398","warnings":[],"time":908.93292427063,"start_microtime":1486558741.9808,"version":"1.17.202","slave_lag":1040284,"member_last_modified_age":1486558741,"output_term":"not_found"}}}'
|
519
|
+
http_version:
|
520
|
+
recorded_at: Wed, 08 Feb 2017 12:59:01 GMT
|
521
|
+
recorded_with: VCR 3.0.3
|