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,354 @@
|
|
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:30 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%3A589b15f7c1ea3%3Anym2; Path=/
|
39
|
+
X-Route:
|
40
|
+
- "/auth"
|
41
|
+
X-Route-Time:
|
42
|
+
- '1390'
|
43
|
+
body:
|
44
|
+
encoding: UTF-8
|
45
|
+
string: '{"response":{"status":"OK","token":"hbapi:171678:589b15f7c1ea3: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":"7c5e9c8e-cbfa-5cd7-b2b5-7756737a05c0","warnings":[],"time":799.10492897034,"start_microtime":1486558710.6607,"version":"1.17","output_term":"not_found"},"awesomesauce_cache_used":false,"count_cache_used":false,"uuid":"5c71051d-2763-5bc2-88be-b5eba330723a","warnings":[],"time":1377.7210712433,"start_microtime":1486558710.6354,"version":"1.17.202","slave_lag":1040249,"output_term":"not_found"}}}'
|
46
|
+
http_version:
|
47
|
+
recorded_at: Wed, 08 Feb 2017 12:58:30 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:589b15f7c1ea3: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
|
+
- '1644'
|
74
|
+
Content-Type:
|
75
|
+
- application/json
|
76
|
+
Date:
|
77
|
+
- Wed, 08 Feb 2017 12:58:32 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%3A589b15f7c1ea3%3Anym2; Path=/
|
86
|
+
X-Count-Read:
|
87
|
+
- user:8,member:3,serviceHostUser:1,serviceHostMember:1,hostUser:2,hostMember:2,ip:0
|
88
|
+
X-Count-Write:
|
89
|
+
- user:10,member:10,serviceHostUser:7,serviceHostMember:7,hostUser:7,hostMember:7,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
|
+
- '302'
|
102
|
+
body:
|
103
|
+
encoding: UTF-8
|
104
|
+
string: '{"response":{"status":"OK","count":1,"id":1561320,"start_element":0,"num_elements":100,"advertiser":{"id":1561320,"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:32","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":8,"user::read_limit":1000,"user::read_limit_seconds":60,"user::writes":10,"user::write_limit":1000,"user::write_limit_seconds":60,"reads":3,"read_limit":1000,"read_limit_seconds":60,"writes":10,"write_limit":1000,"write_limit_seconds":60,"awesomesauce_cache_used":false,"count_cache_used":true,"uuid":"474da836-49bb-5b28-94c8-72e22629782c","warnings":[],"time":284.03520584106,"start_microtime":1486558712.3937,"version":"1.17.202","slave_lag":1040249,"member_last_modified_age":1486558712,"output_term":"advertiser"}}}'
|
107
|
+
http_version:
|
108
|
+
recorded_at: Wed, 08 Feb 2017 12:58:30 GMT
|
109
|
+
- request:
|
110
|
+
method: post
|
111
|
+
uri: https://api-test.appnexus.com/creative?advertiser_id=1561320
|
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:589b15f7c1ea3: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
|
+
- '3046'
|
133
|
+
Content-Type:
|
134
|
+
- application/json
|
135
|
+
X-Count-Read:
|
136
|
+
- user:8,member:3,serviceHostUser:1,serviceHostMember:1,hostUser:1,hostMember:1,ip:0
|
137
|
+
X-Count-Write:
|
138
|
+
- user:11,member:11,serviceHostUser:4,serviceHostMember:4,hostUser:4,hostMember:4,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
|
+
- '419'
|
151
|
+
body:
|
152
|
+
encoding: UTF-8
|
153
|
+
string: '{"response":{"status":"OK","count":1,"id":62215802,"start_element":0,"num_elements":100,"creative":{"name":"rspec
|
154
|
+
test creative","brand_id":1,"media_url":null,"id":62215802,"code":null,"code2":null,"member_id":487,"state":"active","click_track_result":"not_tested","advertiser_id":1561320,"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:33","flash_backup_url":null,"last_modified":"2017-02-08 12:58:33","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":8,"user::read_limit":1000,"user::read_limit_seconds":60,"user::writes":11,"user::write_limit":1000,"user::write_limit_seconds":60,"reads":3,"read_limit":1000,"read_limit_seconds":60,"writes":11,"write_limit":1000,"write_limit_seconds":60,"awesomesauce_cache_used":false,"count_cache_used":true,"uuid":"e79031a7-5935-5f85-b811-897276598af1","warnings":[],"time":375.34213066101,"start_microtime":1.4865587131181E9,"version":"1.17.202","slave_lag":1040249,"member_last_modified_age":1486558713,"output_term":"creative"},"proxy":true}}}'
|
157
|
+
http_version:
|
158
|
+
recorded_at: Wed, 08 Feb 2017 12:58:31 GMT
|
159
|
+
- request:
|
160
|
+
method: get
|
161
|
+
uri: https://api-test.appnexus.com/creative?id=62215802&num_elements=100&start_element=0
|
162
|
+
body:
|
163
|
+
encoding: US-ASCII
|
164
|
+
string: ''
|
165
|
+
headers:
|
166
|
+
User-Agent:
|
167
|
+
- Faraday v0.11.0
|
168
|
+
Authorization:
|
169
|
+
- hbapi:171678:589b15f7c1ea3:nym2
|
170
|
+
Accept-Encoding:
|
171
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
172
|
+
Accept:
|
173
|
+
- "*/*"
|
174
|
+
response:
|
175
|
+
status:
|
176
|
+
code: 200
|
177
|
+
message: OK
|
178
|
+
headers:
|
179
|
+
Content-Length:
|
180
|
+
- '2880'
|
181
|
+
Content-Type:
|
182
|
+
- application/json
|
183
|
+
X-Count-Read:
|
184
|
+
- user:9,member:4,serviceHostUser:2,serviceHostMember:2,hostUser:2,hostMember:2,ip:0
|
185
|
+
X-Count-Write:
|
186
|
+
- user:11,member:11,serviceHostUser:4,serviceHostMember:4,hostUser:4,hostMember:4,ip:0
|
187
|
+
X-Ratelimit-Read:
|
188
|
+
- '1000'
|
189
|
+
X-Ratelimit-Service:
|
190
|
+
- 1000-Default
|
191
|
+
X-Ratelimit-System:
|
192
|
+
- 1000-Default
|
193
|
+
X-Ratelimit-Write:
|
194
|
+
- '1000'
|
195
|
+
X-Route:
|
196
|
+
- "/creative"
|
197
|
+
X-Route-Time:
|
198
|
+
- '83'
|
199
|
+
body:
|
200
|
+
encoding: UTF-8
|
201
|
+
string: '{"response":{"status":"OK","start_element":0,"num_elements":100,"creative":{"name":"rspec
|
202
|
+
test creative","brand_id":1,"media_url":null,"id":62215802,"code":null,"code2":null,"member_id":487,"state":"active","click_track_result":"not_tested","advertiser_id":1561320,"publisher_id":null,"format":"iframe-html","width":300,"height":250,"click_url":null,"flash_click_variable":null,"no_iframes":false,"content":"<iframe
|
203
|
+
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
|
204
|
+
12:58:33","flash_backup_url":null,"last_modified":"2017-02-08 12:58:33","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","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,"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"},"count":1,"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":9,"user::read_limit":1000,"user::read_limit_seconds":60,"user::writes":11,"user::write_limit":1000,"user::write_limit_seconds":60,"reads":4,"read_limit":1000,"read_limit_seconds":60,"writes":11,"write_limit":1000,"write_limit_seconds":60,"awesomesauce_cache_used":false,"count_cache_used":false,"uuid":"1e18cf9a-4ec8-5443-8767-96116cc055f0","warnings":[],"time":47.820091247559,"start_microtime":1.4865587139334E9,"version":"1.17.202","slave_miss":"no_slaves_found","slave_lag":1040249,"member_last_modified_age":0,"output_term":"creative"},"proxy":true}}}'
|
205
|
+
http_version:
|
206
|
+
recorded_at: Wed, 08 Feb 2017 12:58:32 GMT
|
207
|
+
- request:
|
208
|
+
method: delete
|
209
|
+
uri: https://api-test.appnexus.com/creative?advertiser_id=1561320&id=62215802
|
210
|
+
body:
|
211
|
+
encoding: US-ASCII
|
212
|
+
string: ''
|
213
|
+
headers:
|
214
|
+
User-Agent:
|
215
|
+
- Faraday v0.11.0
|
216
|
+
Authorization:
|
217
|
+
- hbapi:171678:589b15f7c1ea3:nym2
|
218
|
+
Accept-Encoding:
|
219
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
220
|
+
Accept:
|
221
|
+
- "*/*"
|
222
|
+
response:
|
223
|
+
status:
|
224
|
+
code: 200
|
225
|
+
message: OK
|
226
|
+
headers:
|
227
|
+
Content-Length:
|
228
|
+
- '809'
|
229
|
+
Content-Type:
|
230
|
+
- application/json
|
231
|
+
X-Count-Read:
|
232
|
+
- user:9,member:4,serviceHostUser:2,serviceHostMember:2,hostUser:2,hostMember:2,ip:0
|
233
|
+
X-Count-Write:
|
234
|
+
- user:12,member:12,serviceHostUser:5,serviceHostMember:5,hostUser:5,hostMember:5,ip:0
|
235
|
+
X-Ratelimit-Read:
|
236
|
+
- '1000'
|
237
|
+
X-Ratelimit-Service:
|
238
|
+
- 1000-Default
|
239
|
+
X-Ratelimit-System:
|
240
|
+
- 1000-Default
|
241
|
+
X-Ratelimit-Write:
|
242
|
+
- '1000'
|
243
|
+
X-Route:
|
244
|
+
- "/creative"
|
245
|
+
X-Route-Time:
|
246
|
+
- '490'
|
247
|
+
body:
|
248
|
+
encoding: UTF-8
|
249
|
+
string: '{"response":{"status":"OK","count":0,"start_element":null,"num_elements":null,"dbg_info":{"instance":"01.creative-api.test104169.nym2","db":"","output_term":"creative","parent_dbg_info":{"instance":"01.hbapi.test104169.nym2","slave_hit":true,"db":"10.3.204.17","user::reads":9,"user::read_limit":1000,"user::read_limit_seconds":60,"user::writes":12,"user::write_limit":1000,"user::write_limit_seconds":60,"reads":4,"read_limit":1000,"read_limit_seconds":60,"writes":12,"write_limit":1000,"write_limit_seconds":60,"awesomesauce_cache_used":false,"count_cache_used":true,"uuid":"127cdd38-ba0f-5955-a108-31d94b1077dd","warnings":[],"time":451.96795463562,"start_microtime":1.4865587144783E9,"version":"1.17.202","slave_lag":1040249,"member_last_modified_age":1486558714,"output_term":"not_found"},"proxy":true}}}'
|
250
|
+
http_version:
|
251
|
+
recorded_at: Wed, 08 Feb 2017 12:58:33 GMT
|
252
|
+
- request:
|
253
|
+
method: get
|
254
|
+
uri: https://api-test.appnexus.com/creative?id=62215802&num_elements=100&start_element=0
|
255
|
+
body:
|
256
|
+
encoding: US-ASCII
|
257
|
+
string: ''
|
258
|
+
headers:
|
259
|
+
User-Agent:
|
260
|
+
- Faraday v0.11.0
|
261
|
+
Authorization:
|
262
|
+
- hbapi:171678:589b15f7c1ea3:nym2
|
263
|
+
Accept-Encoding:
|
264
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
265
|
+
Accept:
|
266
|
+
- "*/*"
|
267
|
+
response:
|
268
|
+
status:
|
269
|
+
code: 200
|
270
|
+
message: OK
|
271
|
+
headers:
|
272
|
+
Content-Length:
|
273
|
+
- '325'
|
274
|
+
Content-Type:
|
275
|
+
- application/json
|
276
|
+
X-Count-Read:
|
277
|
+
- user:10,member:5,serviceHostUser:3,serviceHostMember:3,hostUser:3,hostMember:3,ip:0
|
278
|
+
X-Count-Write:
|
279
|
+
- user:12,member:12,serviceHostUser:5,serviceHostMember:5,hostUser:5,hostMember:5,ip:0
|
280
|
+
X-Ratelimit-Read:
|
281
|
+
- '1000'
|
282
|
+
X-Ratelimit-Service:
|
283
|
+
- 1000-Default
|
284
|
+
X-Ratelimit-System:
|
285
|
+
- 1000-Default
|
286
|
+
X-Ratelimit-Write:
|
287
|
+
- '1000'
|
288
|
+
X-Route:
|
289
|
+
- "/creative"
|
290
|
+
X-Route-Time:
|
291
|
+
- '48'
|
292
|
+
body:
|
293
|
+
encoding: UTF-8
|
294
|
+
string: '{"response":{"error_id":"SYNTAX","error":"resource not found","error_code":null,"dbg_info":{"instance":"01.creative-api.test104169.nym2","db":"","warnings":[],"start_microtime":1486558715.392,"time":0,"version":"","output_term":"not_found"},"start_element":0,"num_elements":100,"count":0,"service":"creative","method":"GET"}}'
|
295
|
+
http_version:
|
296
|
+
recorded_at: Wed, 08 Feb 2017 12:58:33 GMT
|
297
|
+
- request:
|
298
|
+
method: delete
|
299
|
+
uri: https://api-test.appnexus.com/advertiser?id=1561320
|
300
|
+
body:
|
301
|
+
encoding: US-ASCII
|
302
|
+
string: ''
|
303
|
+
headers:
|
304
|
+
User-Agent:
|
305
|
+
- Faraday v0.11.0
|
306
|
+
Authorization:
|
307
|
+
- hbapi:171678:589b15f7c1ea3:nym2
|
308
|
+
Accept-Encoding:
|
309
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
310
|
+
Accept:
|
311
|
+
- "*/*"
|
312
|
+
response:
|
313
|
+
status:
|
314
|
+
code: 200
|
315
|
+
message: OK
|
316
|
+
headers:
|
317
|
+
Cache-Control:
|
318
|
+
- no-store, no-cache, must-revalidate, post-check=0, pre-check=0;no-cache
|
319
|
+
Content-Length:
|
320
|
+
- '698'
|
321
|
+
Content-Type:
|
322
|
+
- application/json
|
323
|
+
Date:
|
324
|
+
- Wed, 08 Feb 2017 12:58:35 GMT
|
325
|
+
Expires:
|
326
|
+
- Thu, 19 Nov 1981 08:52:00 GMT
|
327
|
+
Pragma:
|
328
|
+
- no-cache
|
329
|
+
Server:
|
330
|
+
- Apache
|
331
|
+
Set-Cookie:
|
332
|
+
- HBFAPI_SESSID=hbapi%3A171678%3A589b15f7c1ea3%3Anym2; Path=/
|
333
|
+
X-Count-Read:
|
334
|
+
- user:10,member:5,serviceHostUser:1,serviceHostMember:1,hostUser:2,hostMember:2,ip:0
|
335
|
+
X-Count-Write:
|
336
|
+
- user:13,member:13,serviceHostUser:8,serviceHostMember:8,hostUser:8,hostMember:8,ip:0
|
337
|
+
X-Ratelimit-Read:
|
338
|
+
- '1000'
|
339
|
+
X-Ratelimit-Service:
|
340
|
+
- 1000-Default
|
341
|
+
X-Ratelimit-System:
|
342
|
+
- 1000-Default
|
343
|
+
X-Ratelimit-Write:
|
344
|
+
- '1000'
|
345
|
+
X-Route:
|
346
|
+
- "/advertiser"
|
347
|
+
X-Route-Time:
|
348
|
+
- '1152'
|
349
|
+
body:
|
350
|
+
encoding: UTF-8
|
351
|
+
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":10,"user::read_limit":1000,"user::read_limit_seconds":60,"user::writes":13,"user::write_limit":1000,"user::write_limit_seconds":60,"reads":5,"read_limit":1000,"read_limit_seconds":60,"writes":13,"write_limit":1000,"write_limit_seconds":60,"awesomesauce_cache_used":false,"count_cache_used":false,"uuid":"b38c3e36-f84f-5032-b7ca-7d714f7e060f","warnings":[],"time":1136.1539363861,"start_microtime":1486558715.7704,"version":"1.17.202","slave_lag":1040257,"member_last_modified_age":1486558715,"output_term":"not_found"}}}'
|
352
|
+
http_version:
|
353
|
+
recorded_at: Wed, 08 Feb 2017 12:58:35 GMT
|
354
|
+
recorded_with: VCR 3.0.3
|
@@ -0,0 +1,214 @@
|
|
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:14 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%3A589b15e747998%3Anym2; Path=/
|
39
|
+
X-Route:
|
40
|
+
- "/auth"
|
41
|
+
X-Route-Time:
|
42
|
+
- '1382'
|
43
|
+
body:
|
44
|
+
encoding: UTF-8
|
45
|
+
string: '{"response":{"status":"OK","token":"hbapi:171678:589b15e747998: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":"610e58b4-2bcc-5d35-8698-aa06e3019952","warnings":[],"time":793.51305961609,"start_microtime":1486558694.1659,"version":"1.17","output_term":"not_found"},"awesomesauce_cache_used":false,"count_cache_used":false,"uuid":"b5c103e0-caa6-563c-ae94-190899fd7ea0","warnings":[],"time":1369.6370124817,"start_microtime":1486558694.1406,"version":"1.17.202","slave_lag":1040228,"output_term":"not_found"}}}'
|
46
|
+
http_version:
|
47
|
+
recorded_at: Wed, 08 Feb 2017 12:58:13 GMT
|
48
|
+
- request:
|
49
|
+
method: get
|
50
|
+
uri: https://api-test.appnexus.com/creative?num_elements=1&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:589b15e747998: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
|
+
Content-Length:
|
69
|
+
- '3464'
|
70
|
+
Content-Type:
|
71
|
+
- application/json
|
72
|
+
X-Count-Read:
|
73
|
+
- user:5,member:3,serviceHostUser:1,serviceHostMember:1,hostUser:1,hostMember:1,ip:0
|
74
|
+
X-Count-Write:
|
75
|
+
- user:0,member:0,serviceHostUser:0,serviceHostMember:0,hostUser:0,hostMember:0,ip:0
|
76
|
+
X-Ratelimit-Read:
|
77
|
+
- '1000'
|
78
|
+
X-Ratelimit-Service:
|
79
|
+
- 1000-Default
|
80
|
+
X-Ratelimit-System:
|
81
|
+
- 1000-Default
|
82
|
+
X-Ratelimit-Write:
|
83
|
+
- '1000'
|
84
|
+
X-Route:
|
85
|
+
- "/creative"
|
86
|
+
X-Route-Time:
|
87
|
+
- '68'
|
88
|
+
body:
|
89
|
+
encoding: UTF-8
|
90
|
+
string: '{"response":{"status":"OK","start_element":0,"num_elements":1,"creatives":[{"name":"Fit_Test_Pictograms_300x250","brand_id":947,"media_url":"http:\/\/cdn.adnxs.com\/p\/54\/65\/59\/0d\/5465590d004514adbeae6e849b663c7d.png","id":34761581,"code":null,"code2":null,"member_id":487,"state":"active","click_track_result":"passed","advertiser_id":595902,"publisher_id":null,"format":"image","width":300,"height":250,"click_url":"https:\/\/www.lumosity.com\/landing?refer=7607&sub=${CP_ID}_${CREATIVE_ID}_${TAG_ID}_${EXT_APP_ID}_${REFERER_URL}","flash_click_variable":null,"no_iframes":false,"content":"","original_content":null,"file_name":"Pictograms_TakeFitTest_ChallengeAttMem_300x250.png","track_clicks":true,"audit_status":"audited","macros":"CP_ID","profile_id":null,"audit_feedback":"","is_prohibited":false,"created_on":"2015-09-02
|
91
|
+
17:58:55","flash_backup_url":"","last_modified":"2017-01-19 05:11:40","is_control":false,"allow_audit":true,"is_expired":false,"creative_upload_status":"completed","backup_upload_status":null,"use_dynamic_click_url":false,"media_subtypes":["banner"],"size_in_bytes":22577,"is_self_audited":false,"no_adservers":false,"text_title":null,"text_description":null,"text_display_url":null,"click_action":"click-to-web","click_target":"https:\/\/www.lumosity.com\/landing?refer=7607&sub=${CP_ID}_${CREATIVE_ID}_${TAG_ID}_${EXT_APP_ID}_${REFERER_URL}","ssl_status":"approved","allow_ssl_audit":true,"media_url_secure":"https:\/\/a248.e.akamai.net\/appnexus.download.akamai.com\/89298\/adnexus-prod\/p\/54\/65\/59\/0d\/5465590d004514adbeae6e849b663c7d.png","content_secure":"","original_content_secure":null,"flash_backup_url_secure":"","is_hosted":true,"content_source":"standard","landing_page_url":"https:\/\/www.lumosity.com\/landing_pages\/942","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":947,"name":"Lumos
|
92
|
+
Labs Inc","category_id":9},"template":{"id":4,"name":"Standard","media_subtype_id":1,"format_id":4},"ios_ssl_audit":{"audit_status":"approved","audit_feedback":null},"adx_audit":{"audit_status":"rejected","audit_feedback":"Rejection
|
93
|
+
Reason: UNSUPPORTED_FLASH_CONTENT, Details: Unsupported flash content."},"thirdparty_page":null,"custom_macros":null,"segments":null,"line_items":null,"competitive_brands":null,"competitive_categories":null,"pixels":null,"mobile":{"alternative_landing_page_url":""},"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"}],"count":78,"dbg_info":{"instance":"01.hbapi.test104169.nym2","slave_hit":false,"db":"master","user::reads":5,"user::read_limit":1000,"user::read_limit_seconds":60,"user::writes":0,"user::write_limit":1000,"user::write_limit_seconds":60,"reads":3,"read_limit":1000,"read_limit_seconds":60,"writes":0,"write_limit":1000,"write_limit_seconds":60,"awesomesauce_cache_used":false,"count_cache_used":true,"uuid":"fead2b79-de61-523c-a897-72a0149d09d9","warnings":[],"time":34.46102142334,"start_microtime":1.4865586961117E9,"version":"1.17.202","slave_miss":"no_slaves_found","slave_lag":1040239,"member_last_modified_age":809,"output_term":"creatives"}}}'
|
94
|
+
http_version:
|
95
|
+
recorded_at: Wed, 08 Feb 2017 12:58:14 GMT
|
96
|
+
- request:
|
97
|
+
method: post
|
98
|
+
uri: https://api-test.appnexus.com/advertiser
|
99
|
+
body:
|
100
|
+
encoding: UTF-8
|
101
|
+
string: '{"advertiser":{"name":"rspec advertiser"}}'
|
102
|
+
headers:
|
103
|
+
User-Agent:
|
104
|
+
- Faraday v0.11.0
|
105
|
+
Authorization:
|
106
|
+
- hbapi:171678:589b15e747998:nym2
|
107
|
+
Content-Type:
|
108
|
+
- application/json
|
109
|
+
Accept-Encoding:
|
110
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
111
|
+
Accept:
|
112
|
+
- "*/*"
|
113
|
+
response:
|
114
|
+
status:
|
115
|
+
code: 200
|
116
|
+
message: OK
|
117
|
+
headers:
|
118
|
+
Cache-Control:
|
119
|
+
- no-store, no-cache, must-revalidate, post-check=0, pre-check=0;no-cache
|
120
|
+
Content-Length:
|
121
|
+
- '1643'
|
122
|
+
Content-Type:
|
123
|
+
- application/json
|
124
|
+
Date:
|
125
|
+
- Wed, 08 Feb 2017 12:58:16 GMT
|
126
|
+
Expires:
|
127
|
+
- Thu, 19 Nov 1981 08:52:00 GMT
|
128
|
+
Pragma:
|
129
|
+
- no-cache
|
130
|
+
Server:
|
131
|
+
- Apache
|
132
|
+
Set-Cookie:
|
133
|
+
- HBFAPI_SESSID=hbapi%3A171678%3A589b15e747998%3Anym2; Path=/
|
134
|
+
X-Count-Read:
|
135
|
+
- user:5,member:3,serviceHostUser:1,serviceHostMember:1,hostUser:2,hostMember:2,ip:0
|
136
|
+
X-Count-Write:
|
137
|
+
- user:1,member:1,serviceHostUser:1,serviceHostMember:1,hostUser:1,hostMember:1,ip:0
|
138
|
+
X-Ratelimit-Read:
|
139
|
+
- '1000'
|
140
|
+
X-Ratelimit-Service:
|
141
|
+
- 1000-Default
|
142
|
+
X-Ratelimit-System:
|
143
|
+
- 1000-Default
|
144
|
+
X-Ratelimit-Write:
|
145
|
+
- '1000'
|
146
|
+
X-Route:
|
147
|
+
- "/advertiser"
|
148
|
+
X-Route-Time:
|
149
|
+
- '364'
|
150
|
+
body:
|
151
|
+
encoding: UTF-8
|
152
|
+
string: '{"response":{"status":"OK","count":1,"id":1561317,"start_element":0,"num_elements":100,"advertiser":{"id":1561317,"code":null,"name":"rspec
|
153
|
+
advertiser","state":"active","default_brand_id":null,"remarketing_segment_id":null,"profile_id":null,"control_pct":0,"timezone":"EST5EDT","last_modified":"2017-02-08
|
154
|
+
12:58:16","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":5,"user::read_limit":1000,"user::read_limit_seconds":60,"user::writes":1,"user::write_limit":1000,"user::write_limit_seconds":60,"reads":3,"read_limit":1000,"read_limit_seconds":60,"writes":1,"write_limit":1000,"write_limit_seconds":60,"awesomesauce_cache_used":false,"count_cache_used":false,"uuid":"e596df68-a2f1-5081-95db-4c64d888d630","warnings":[],"time":347.63979911804,"start_microtime":1486558696.5307,"version":"1.17.202","slave_lag":1040239,"member_last_modified_age":1486558696,"output_term":"advertiser"}}}'
|
155
|
+
http_version:
|
156
|
+
recorded_at: Wed, 08 Feb 2017 12:58:15 GMT
|
157
|
+
- request:
|
158
|
+
method: delete
|
159
|
+
uri: https://api-test.appnexus.com/advertiser?id=1561317
|
160
|
+
body:
|
161
|
+
encoding: US-ASCII
|
162
|
+
string: ''
|
163
|
+
headers:
|
164
|
+
User-Agent:
|
165
|
+
- Faraday v0.11.0
|
166
|
+
Authorization:
|
167
|
+
- hbapi:171678:589b15e747998:nym2
|
168
|
+
Accept-Encoding:
|
169
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
170
|
+
Accept:
|
171
|
+
- "*/*"
|
172
|
+
response:
|
173
|
+
status:
|
174
|
+
code: 200
|
175
|
+
message: OK
|
176
|
+
headers:
|
177
|
+
Cache-Control:
|
178
|
+
- no-store, no-cache, must-revalidate, post-check=0, pre-check=0;no-cache
|
179
|
+
Content-Length:
|
180
|
+
- '695'
|
181
|
+
Content-Type:
|
182
|
+
- application/json
|
183
|
+
Date:
|
184
|
+
- Wed, 08 Feb 2017 12:58:17 GMT
|
185
|
+
Expires:
|
186
|
+
- Thu, 19 Nov 1981 08:52:00 GMT
|
187
|
+
Pragma:
|
188
|
+
- no-cache
|
189
|
+
Server:
|
190
|
+
- Apache
|
191
|
+
Set-Cookie:
|
192
|
+
- HBFAPI_SESSID=hbapi%3A171678%3A589b15e747998%3Anym2; Path=/
|
193
|
+
X-Count-Read:
|
194
|
+
- user:5,member:3,serviceHostUser:1,serviceHostMember:1,hostUser:2,hostMember:2,ip:0
|
195
|
+
X-Count-Write:
|
196
|
+
- user:2,member:2,serviceHostUser:2,serviceHostMember:2,hostUser:2,hostMember:2,ip:0
|
197
|
+
X-Ratelimit-Read:
|
198
|
+
- '1000'
|
199
|
+
X-Ratelimit-Service:
|
200
|
+
- 1000-Default
|
201
|
+
X-Ratelimit-System:
|
202
|
+
- 1000-Default
|
203
|
+
X-Ratelimit-Write:
|
204
|
+
- '1000'
|
205
|
+
X-Route:
|
206
|
+
- "/advertiser"
|
207
|
+
X-Route-Time:
|
208
|
+
- '974'
|
209
|
+
body:
|
210
|
+
encoding: UTF-8
|
211
|
+
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":5,"user::read_limit":1000,"user::read_limit_seconds":60,"user::writes":2,"user::write_limit":1000,"user::write_limit_seconds":60,"reads":3,"read_limit":1000,"read_limit_seconds":60,"writes":2,"write_limit":1000,"write_limit_seconds":60,"awesomesauce_cache_used":false,"count_cache_used":false,"uuid":"3ee7db9c-b504-5ed0-ae48-1c5ed9dfdd2f","warnings":[],"time":958.50014686584,"start_microtime":1486558697.4002,"version":"1.17.202","slave_lag":1040240,"member_last_modified_age":1486558697,"output_term":"not_found"}}}'
|
212
|
+
http_version:
|
213
|
+
recorded_at: Wed, 08 Feb 2017 12:58:16 GMT
|
214
|
+
recorded_with: VCR 3.0.3
|