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,150 @@
|
|
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:03 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%3A589b1618be664%3Anym2; Path=/
|
39
|
+
X-Route:
|
40
|
+
- "/auth"
|
41
|
+
X-Route-Time:
|
42
|
+
- '1384'
|
43
|
+
body:
|
44
|
+
encoding: UTF-8
|
45
|
+
string: '{"response":{"status":"OK","token":"hbapi:171678:589b1618be664: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":"17c66db1-919b-56d7-9644-d1c32255ccf6","warnings":[],"time":793.48993301392,"start_microtime":1486558743.6533,"version":"1.17","output_term":"not_found"},"awesomesauce_cache_used":false,"count_cache_used":false,"uuid":"420f9790-3e57-5c44-bcc3-197ccc87a73f","warnings":[],"time":1370.8100318909,"start_microtime":1486558743.6272,"version":"1.17.202","slave_lag":1040284,"output_term":"not_found"}}}'
|
46
|
+
http_version:
|
47
|
+
recorded_at: Wed, 08 Feb 2017 12:59:03 GMT
|
48
|
+
- request:
|
49
|
+
method: get
|
50
|
+
uri: https://api-test.appnexus.com/member?num_elements=100&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:589b1618be664: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-Type:
|
71
|
+
- application/json
|
72
|
+
Date:
|
73
|
+
- Wed, 08 Feb 2017 12:59:05 GMT
|
74
|
+
Expires:
|
75
|
+
- Thu, 19 Nov 1981 08:52:00 GMT
|
76
|
+
Pragma:
|
77
|
+
- no-cache
|
78
|
+
Server:
|
79
|
+
- Apache
|
80
|
+
Set-Cookie:
|
81
|
+
- HBFAPI_SESSID=hbapi%3A171678%3A589b1618be664%3Anym2; Path=/
|
82
|
+
Transfer-Encoding:
|
83
|
+
- chunked
|
84
|
+
X-Count-Read:
|
85
|
+
- user:23,member:13,serviceHostUser:1,serviceHostMember:1,hostUser:10,hostMember:10,ip:0
|
86
|
+
X-Count-Write:
|
87
|
+
- user:29,member:29,serviceHostUser:0,serviceHostMember:0,hostUser:24,hostMember:24,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
|
+
- "/member"
|
98
|
+
X-Route-Time:
|
99
|
+
- '42'
|
100
|
+
body:
|
101
|
+
encoding: UTF-8
|
102
|
+
string: '{"response":{"status":"OK","start_element":0,"num_elements":100,"member":{"id":487,"name":"Lumos
|
103
|
+
Labs","whitelabel_support_email":"support@adnexus.com","reselling_description":null,"state":"active","no_reselling_priority":6,"entity_type":"reseller","interface_domain":null,"interface_domain_beta":null,"reselling_exposure":"private","reselling_exposed_on":"1970-01-01
|
104
|
+
00:00:01","last_modified":"2017-01-07 07:39:17","timezone":"EST5EDT","default_currency":"USD","use_insertion_orders":false,"expose_optimization_levers":true,"default_optimization_version":7,"daily_imps_verified":null,"daily_imps_self_audited":null,"daily_imps_unaudited":null,"allow_non_cpm_payment":false,"default_allow_cpc":true,"default_allow_cpa":true,"default_campaign_trust":"appnexus","default_campaign_allow_unaudited":false,"contract_allows_unaudited":true,"enable_facebook":false,"reporting_decimal_type":"decimal","email_code":null,"enable_click_and_imp_trackers":true,"default_ad_profile_id":739,"buyer_credit_limit":25000,"platform_exposure":"public","contact_email":null,"allow_ad_profile_override":true,"short_name":"lumos","expose_eap_ecp_placement_settings":false,"default_external_audit":false,"plugins_enabled":true,"default_placement_id":null,"default_inv_source_id":null,"seller_revshare_pct":85,"dongle":"blue","buyer_clearing_fee_pct":null,"audit_notify_email":"mark@lumoslabs.com","max_hosted_video_size":null,"visibility_profile_id":267,"pops_enabled_UI":false,"allow_priority_audit":true,"default_accept_data_provider_usersync":true,"default_accept_demand_partner_usersync":true,"default_accept_supply_partner_usersync":true,"domain_blacklist_email":null,"require_facebook_preaudit":true,"ym_profile_id":null,"default_discrepancy_pct":null,"pitbull_segment_id":0,"pitbull_segment_value":0,"description":null,"sherlock_notify_email":"mark@lumoslabs.com","default_content_retrieval_timeout_ms":0,"default_enable_for_mediation":false,"prioritize_margin":false,"deal_visibility_profile_id":null,"xd_coop":false,"age_segment_id":null,"gender_segment_id":null,"developer_id":null,"daily_budget":10000,"account_owner_user":{"id":176139,"first_name":"Mallory","last_name":"Walsh"},"default_country":null,"content_categories":[{"id":4134,"ym_profile_id":null,"parent_category_id":null,"name":"Pets
|
105
|
+
\u0026 Animals","reselling_exposed_on":"1970-01-01 00:00:01","code":null,"reselling_exposure":"private","is_system":false,"description":null},{"id":4135,"ym_profile_id":null,"parent_category_id":null,"name":"Fun
|
106
|
+
\u0026 Trivia","reselling_exposed_on":"1970-01-01 00:00:01","code":null,"reselling_exposure":"private","is_system":false,"description":null},{"id":4136,"ym_profile_id":null,"parent_category_id":null,"name":"Autos
|
107
|
+
\u0026 Vehicles","reselling_exposed_on":"1970-01-01 00:00:01","code":null,"reselling_exposure":"private","is_system":false,"description":null},{"id":4137,"ym_profile_id":null,"parent_category_id":null,"name":"Beauty
|
108
|
+
\u0026 Personal Care","reselling_exposed_on":"1970-01-01 00:00:01","code":null,"reselling_exposure":"private","is_system":false,"description":null},{"id":4138,"ym_profile_id":null,"parent_category_id":null,"name":"Business
|
109
|
+
\u0026 Industry","reselling_exposed_on":"1970-01-01 00:00:01","code":null,"reselling_exposure":"private","is_system":false,"description":null},{"id":4139,"ym_profile_id":null,"parent_category_id":null,"name":"Computers
|
110
|
+
\u0026 Electronics","reselling_exposed_on":"1970-01-01 00:00:01","code":null,"reselling_exposure":"private","is_system":false,"description":null},{"id":4140,"ym_profile_id":null,"parent_category_id":null,"name":"Arts
|
111
|
+
\u0026 Entertainment","reselling_exposed_on":"1970-01-01 00:00:01","code":null,"reselling_exposure":"private","is_system":false,"description":null},{"id":4141,"ym_profile_id":null,"parent_category_id":null,"name":"Finance","reselling_exposed_on":"1970-01-01
|
112
|
+
00:00:01","code":null,"reselling_exposure":"private","is_system":false,"description":null},{"id":4142,"ym_profile_id":null,"parent_category_id":null,"name":"Food
|
113
|
+
\u0026 Drink","reselling_exposed_on":"1970-01-01 00:00:01","code":null,"reselling_exposure":"private","is_system":false,"description":null},{"id":4143,"ym_profile_id":null,"parent_category_id":null,"name":"Games","reselling_exposed_on":"1970-01-01
|
114
|
+
00:00:01","code":null,"reselling_exposure":"private","is_system":false,"description":null},{"id":4144,"ym_profile_id":null,"parent_category_id":null,"name":"Health","reselling_exposed_on":"1970-01-01
|
115
|
+
00:00:01","code":null,"reselling_exposure":"private","is_system":false,"description":null},{"id":4145,"ym_profile_id":null,"parent_category_id":null,"name":"Home
|
116
|
+
\u0026 Garden","reselling_exposed_on":"1970-01-01 00:00:01","code":null,"reselling_exposure":"private","is_system":false,"description":null},{"id":4146,"ym_profile_id":null,"parent_category_id":null,"name":"Industries","reselling_exposed_on":"1970-01-01
|
117
|
+
00:00:01","code":null,"reselling_exposure":"private","is_system":false,"description":null},{"id":4147,"ym_profile_id":null,"parent_category_id":null,"name":"Internet
|
118
|
+
\u0026 Telecom","reselling_exposed_on":"1970-01-01 00:00:01","code":null,"reselling_exposure":"private","is_system":false,"description":null},{"id":4148,"ym_profile_id":null,"parent_category_id":null,"name":"Lifestyles","reselling_exposed_on":"1970-01-01
|
119
|
+
00:00:01","code":null,"reselling_exposure":"private","is_system":false,"description":null},{"id":4149,"ym_profile_id":null,"parent_category_id":null,"name":"Local
|
120
|
+
News","reselling_exposed_on":"1970-01-01 00:00:01","code":null,"reselling_exposure":"private","is_system":false,"description":null},{"id":4150,"ym_profile_id":null,"parent_category_id":null,"name":"News","reselling_exposed_on":"1970-01-01
|
121
|
+
00:00:01","code":null,"reselling_exposure":"private","is_system":false,"description":null},{"id":4151,"ym_profile_id":null,"parent_category_id":null,"name":"Online
|
122
|
+
Communities","reselling_exposed_on":"1970-01-01 00:00:01","code":null,"reselling_exposure":"private","is_system":false,"description":null},{"id":4152,"ym_profile_id":null,"parent_category_id":null,"name":"Photo
|
123
|
+
\u0026 Video Sharing","reselling_exposed_on":"1970-01-01 00:00:01","code":null,"reselling_exposure":"private","is_system":false,"description":null},{"id":4153,"ym_profile_id":null,"parent_category_id":null,"name":"Real
|
124
|
+
Estate","reselling_exposed_on":"1970-01-01 00:00:01","code":null,"reselling_exposure":"private","is_system":false,"description":null},{"id":4154,"ym_profile_id":null,"parent_category_id":null,"name":"Recreation","reselling_exposed_on":"1970-01-01
|
125
|
+
00:00:01","code":null,"reselling_exposure":"private","is_system":false,"description":null},{"id":4155,"ym_profile_id":null,"parent_category_id":null,"name":"Reference
|
126
|
+
\u0026 Language","reselling_exposed_on":"1970-01-01 00:00:01","code":null,"reselling_exposure":"private","is_system":false,"description":null},{"id":4156,"ym_profile_id":null,"parent_category_id":null,"name":"Science","reselling_exposed_on":"1970-01-01
|
127
|
+
00:00:01","code":null,"reselling_exposure":"private","is_system":false,"description":null},{"id":4157,"ym_profile_id":null,"parent_category_id":null,"name":"Shopping","reselling_exposed_on":"1970-01-01
|
128
|
+
00:00:01","code":null,"reselling_exposure":"private","is_system":false,"description":null},{"id":4158,"ym_profile_id":null,"parent_category_id":null,"name":"Society","reselling_exposed_on":"1970-01-01
|
129
|
+
00:00:01","code":null,"reselling_exposure":"private","is_system":false,"description":null},{"id":4159,"ym_profile_id":null,"parent_category_id":null,"name":"Sports","reselling_exposed_on":"1970-01-01
|
130
|
+
00:00:01","code":null,"reselling_exposure":"private","is_system":false,"description":null},{"id":4160,"ym_profile_id":null,"parent_category_id":null,"name":"Consumer
|
131
|
+
Electronics","reselling_exposed_on":"1970-01-01 00:00:01","code":null,"reselling_exposure":"private","is_system":false,"description":null},{"id":4161,"ym_profile_id":null,"parent_category_id":null,"name":"Travel","reselling_exposed_on":"1970-01-01
|
132
|
+
00:00:01","code":null,"reselling_exposure":"private","is_system":false,"description":null},{"id":46953,"ym_profile_id":null,"parent_category_id":null,"name":"rspec","reselling_exposed_on":"1970-01-01
|
133
|
+
00:00:01","code":null,"reselling_exposure":"private","is_system":false,"description":null}],"inventory_trust":{"default_trust":"seller","default_allow_unaudited":true},"seller_member_groups":null,"default_creatives":null,"standard_sizes":[{"width":100,"height":72,"is_standard":false},{"width":120,"height":600,"is_standard":true},{"width":160,"height":600,"is_standard":true},{"width":180,"height":150,"is_standard":false},{"width":200,"height":200,"is_standard":false},{"width":234,"height":600,"is_standard":false},{"width":250,"height":250,"is_standard":false},{"width":300,"height":250,"is_standard":true},{"width":300,"height":600,"is_standard":true},{"width":430,"height":600,"is_standard":false},{"width":468,"height":60,"is_standard":true},{"width":728,"height":90,"is_standard":true}],"deal_types":null,"serving_domain":null,"contracts":[{"creative_size_minimum_bytes":40960,"creative_size_fee_per_gb":"2.50","ad_serving_cpm":"0.0200","seller_type":"platform","pricing_version":"2013.01.02","seller_console_buyer_revshare_pct":"14.00","seller_bidder_buyer_revshare_pct":"14.00","auction_revshare_platform_inv_pct":"10.00","auction_revshare_platform_inv_type":"deduction","auction_revshare_partner_inv_pct":"10.00","auction_revshare_partner_inv_type":"deduction","is_active":true}],"contact_info":[{"name":"Vishal
|
134
|
+
Bhalla","title":"Manager","email":"vishal@lumoslabs.com","phone":"","address":"","address_2":"","city":"","country":"","region":"","postal_code":"","additional_info":"Lumosity
|
135
|
+
is a company focused on cognitive improvement through \u0022Brain Training.\u0022 We
|
136
|
+
offer a series of online courses that help users improve core mental abilities. The
|
137
|
+
design is driven by academic research and each game is an exercise to improve
|
138
|
+
specific areas such as problem solving, memory training or quantitative reasoning.
|
139
|
+
Some courses are designed for medical conditions such as Traumatic Brain Injury.
|
140
|
+
As users become proficient in a game, it is automatically adjusted to increase
|
141
|
+
in difficulty in order to continue to stimulate brain development through
|
142
|
+
ongoing challenge.\n\nThe positioning of our offering is \u201ca gym for your
|
143
|
+
brain.\u201d Just as people put time and money into a gym to maintain their
|
144
|
+
physical health, they should do the same to maintain their cognitive function
|
145
|
+
as they age and\/or improve their cognitive function for success in everyday
|
146
|
+
life (the workplace,in school, etc.). This positioning resonates well with
|
147
|
+
a health \u0026 fitness audience we know to be interested in improving themselves.","website_url":null,"types":["demand"]}],"features":null,"member_brand_exceptions":null,"thirdparty_pixels":null,"floor_optimization":null,"native_custom_keys":null,"mediation":{"auto_bid_adjustment_enabled":false,"reporting_sync_enabled":false},"server_of_record":null,"macros":null,"active_contract":{}},"count":1,"dbg_info":{"instance":"01.hbapi.test104169.nym2","slave_hit":false,"db":"master","user::reads":23,"user::read_limit":1000,"user::read_limit_seconds":60,"user::writes":29,"user::write_limit":1000,"user::write_limit_seconds":60,"reads":13,"read_limit":1000,"read_limit_seconds":60,"writes":29,"write_limit":1000,"write_limit_seconds":60,"awesomesauce_cache_used":false,"count_cache_used":true,"uuid":"b09bd6ff-c8d6-53f5-9548-cfd5079992ec","warnings":[],"time":36.946058273315,"start_microtime":1486558745.4658,"version":"1.17.202","slave_miss":"no_slaves_found","slave_lag":1040288,"member_last_modified_age":242,"output_term":"member"}}}'
|
148
|
+
http_version:
|
149
|
+
recorded_at: Wed, 08 Feb 2017 12:59:03 GMT
|
150
|
+
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:31 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%3A589b1634ab715%3Anym2; Path=/
|
39
|
+
X-Route:
|
40
|
+
- "/auth"
|
41
|
+
X-Route-Time:
|
42
|
+
- '1378'
|
43
|
+
body:
|
44
|
+
encoding: UTF-8
|
45
|
+
string: '{"response":{"status":"OK","token":"hbapi:171678:589b1634ab715: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":"5dc0a77b-0e67-5d4f-8996-2bef68069f4f","warnings":[],"time":795.01104354858,"start_microtime":1486558771.5769,"version":"1.17","output_term":"not_found"},"awesomesauce_cache_used":false,"count_cache_used":false,"uuid":"45c67773-c5bf-574f-acb7-22ef794673c5","warnings":[],"time":1367.5508499146,"start_microtime":1486558771.5537,"version":"1.17.202","slave_lag":1040309,"output_term":"not_found"}}}'
|
46
|
+
http_version:
|
47
|
+
recorded_at: Wed, 08 Feb 2017 12:59:31 GMT
|
48
|
+
- request:
|
49
|
+
method: get
|
50
|
+
uri: https://api-test.appnexus.com/object-limit?num_elements=100&object_type=creative&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:589b1634ab715: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
|
+
- '859'
|
72
|
+
Content-Type:
|
73
|
+
- application/json
|
74
|
+
Date:
|
75
|
+
- Wed, 08 Feb 2017 12:59:33 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%3A589b1634ab715%3Anym2; Path=/
|
84
|
+
X-Count-Read:
|
85
|
+
- user:12,member:5,serviceHostUser:1,serviceHostMember:1,hostUser:5,hostMember:5,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
|
+
- '30'
|
100
|
+
body:
|
101
|
+
encoding: UTF-8
|
102
|
+
string: '{"response":{"status":"OK","start_element":null,"num_elements":null,"object-limits":[{"object_type":"creative","limit":10000,"mapping_limits":[],"count_active":51,"count_inactive":12,"count_total":63}],"count":null,"dbg_info":{"instance":"01.hbapi.test104169.nym2","slave_hit":false,"db":"master","user::reads":12,"user::read_limit":1000,"user::read_limit_seconds":60,"user::writes":6,"user::write_limit":1000,"user::write_limit_seconds":60,"reads":5,"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":"8c020804-d054-5792-8ae5-f3f39804d643","warnings":[],"time":21.0280418396,"start_microtime":1486558773.2986,"version":"1.17.202","slave_miss":"no_timestamp","slave_lag":1040309,"member_last_modified_age":1486558773,"output_term":"object-limits"}}}'
|
103
|
+
http_version:
|
104
|
+
recorded_at: Wed, 08 Feb 2017 12:59:31 GMT
|
105
|
+
recorded_with: VCR 3.0.3
|
@@ -0,0 +1,346 @@
|
|
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:05 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%3A589b161b1dafd%3Anym2; Path=/
|
39
|
+
X-Route:
|
40
|
+
- "/auth"
|
41
|
+
X-Route-Time:
|
42
|
+
- '1380'
|
43
|
+
body:
|
44
|
+
encoding: UTF-8
|
45
|
+
string: '{"response":{"status":"OK","token":"hbapi:171678:589b161b1dafd: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":"76a366a5-c334-5954-b19e-9695cbf30a26","warnings":[],"time":797.96600341797,"start_microtime":1486558745.9978,"version":"1.17","output_term":"not_found"},"awesomesauce_cache_used":false,"count_cache_used":false,"uuid":"660554d2-d272-5c0c-860f-a4bbc5ee5988","warnings":[],"time":1366.9741153717,"start_microtime":1486558745.9735,"version":"1.17.202","slave_lag":1040288,"output_term":"not_found"}}}'
|
46
|
+
http_version:
|
47
|
+
recorded_at: Wed, 08 Feb 2017 12:59:05 GMT
|
48
|
+
- request:
|
49
|
+
method: post
|
50
|
+
uri: https://api-test.appnexus.com/publisher?create_default_placement=false
|
51
|
+
body:
|
52
|
+
encoding: UTF-8
|
53
|
+
string: '{"publisher":{"name":"spec publisher","code":"spec_publisher_code","expose_domains":true,"reselling_exposure":"public","ad_quality_advanced_mode_enabled":true}}'
|
54
|
+
headers:
|
55
|
+
User-Agent:
|
56
|
+
- Faraday v0.11.0
|
57
|
+
Authorization:
|
58
|
+
- hbapi:171678:589b161b1dafd: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
|
+
- '2336'
|
74
|
+
Content-Type:
|
75
|
+
- application/json
|
76
|
+
Date:
|
77
|
+
- Wed, 08 Feb 2017 12:59:07 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%3A589b161b1dafd%3Anym2; Path=/
|
86
|
+
X-Count-Read:
|
87
|
+
- user:24,member:13,serviceHostUser:1,serviceHostMember:1,hostUser:10,hostMember:10,ip:0
|
88
|
+
X-Count-Write:
|
89
|
+
- user:30,member:30,serviceHostUser:1,serviceHostMember:1,hostUser:25,hostMember:25,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
|
+
- "/publisher"
|
100
|
+
X-Route-Time:
|
101
|
+
- '305'
|
102
|
+
body:
|
103
|
+
encoding: UTF-8
|
104
|
+
string: '{"response":{"status":"OK","count":1,"id":925476,"start_element":0,"num_elements":100,"publisher":{"id":925476,"code":"spec_publisher_code","reselling_name":null,"expose_domains":true,"is_rtb":false,"reselling_exposure":"public","reselling_exposed_on":"2017-02-08
|
105
|
+
12:59:07","timezone":"EST5EDT","last_modified":"2017-02-08 12:59:07","max_learn_pct":0,"accept_demand_partner_usersync":null,"learn_bypass_cpm":5,"ad_quality_advanced_mode_enabled":true,"allow_report_on_default_imps":false,"inventory_source":null,"inventory_relationship":"undeclared","disclosure_status":"undisclosed","name":"spec
|
106
|
+
publisher","description":"","state":"active","default_site_id":null,"default_ad_profile_id":null,"billing_dba":null,"billing_address1":null,"billing_address2":null,"billing_city":null,"billing_state":null,"billing_zip":null,"billing_country":null,"accept_supply_partner_usersync":null,"accept_data_provider_usersync":null,"ym_profile_id":null,"allow_cpm_managed":true,"allow_cpm_external":true,"allow_cpa_managed":true,"allow_cpa_external":false,"allow_cpc_managed":true,"allow_cpc_external":false,"managed_cpc_bias_pct":100,"managed_cpa_bias_pct":100,"external_cpc_bias_pct":100,"external_cpa_bias_pct":100,"is_oo":false,"base_payment_rule_id":1192845,"base_ad_quality_rule_id":null,"currency":"USD","visibility_profile_id":null,"cpm_reselling_disabled":false,"cpc_reselling_disabled":false,"platform_ops_notes":null,"pitbull_segment_id":0,"pitbull_segment_value":0,"enable_cookie_tracking_default":true,"seller_page_cap_enabled":false,"inventory_source_name":null,"billing_internal_user":null,"labels":null,"placements":null,"external_inv_codes":null,"contact_info":null,"publisher_brand_exceptions":null,"contact":null},"dbg_info":{"instance":"01.hbapi.test104169.nym2","slave_hit":false,"db":"master","user::reads":24,"user::read_limit":1000,"user::read_limit_seconds":60,"user::writes":30,"user::write_limit":1000,"user::write_limit_seconds":60,"reads":13,"read_limit":1000,"read_limit_seconds":60,"writes":30,"write_limit":1000,"write_limit_seconds":60,"awesomesauce_cache_used":false,"count_cache_used":false,"uuid":"b2982068-d463-5ac9-af79-068bfe82a309","warnings":[],"time":286.77701950073,"start_microtime":1486558747.7169,"version":"1.17.202","slave_lag":1040289,"member_last_modified_age":1486558747,"output_term":"publisher"}}}'
|
107
|
+
http_version:
|
108
|
+
recorded_at: Wed, 08 Feb 2017 12:59:06 GMT
|
109
|
+
- request:
|
110
|
+
method: post
|
111
|
+
uri: https://api-test.appnexus.com/payment-rule?publisher_id=925476
|
112
|
+
body:
|
113
|
+
encoding: UTF-8
|
114
|
+
string: '{"payment-rule":{"code":"spec_payment_rule_code","name":"spec payment
|
115
|
+
rule","pricing_type":"cpm","cost_cpm":1.0}}'
|
116
|
+
headers:
|
117
|
+
User-Agent:
|
118
|
+
- Faraday v0.11.0
|
119
|
+
Authorization:
|
120
|
+
- hbapi:171678:589b161b1dafd:nym2
|
121
|
+
Content-Type:
|
122
|
+
- application/json
|
123
|
+
Accept-Encoding:
|
124
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
125
|
+
Accept:
|
126
|
+
- "*/*"
|
127
|
+
response:
|
128
|
+
status:
|
129
|
+
code: 200
|
130
|
+
message: OK
|
131
|
+
headers:
|
132
|
+
Cache-Control:
|
133
|
+
- no-store, no-cache, must-revalidate, post-check=0, pre-check=0;no-cache
|
134
|
+
Content-Length:
|
135
|
+
- '1303'
|
136
|
+
Content-Type:
|
137
|
+
- application/json
|
138
|
+
Date:
|
139
|
+
- Wed, 08 Feb 2017 12:59:08 GMT
|
140
|
+
Expires:
|
141
|
+
- Thu, 19 Nov 1981 08:52:00 GMT
|
142
|
+
Pragma:
|
143
|
+
- no-cache
|
144
|
+
Server:
|
145
|
+
- Apache
|
146
|
+
Set-Cookie:
|
147
|
+
- HBFAPI_SESSID=hbapi%3A171678%3A589b161b1dafd%3Anym2; Path=/
|
148
|
+
X-Count-Read:
|
149
|
+
- user:24,member:13,serviceHostUser:0,serviceHostMember:0,hostUser:10,hostMember:10,ip:0
|
150
|
+
X-Count-Write:
|
151
|
+
- user:31,member:31,serviceHostUser:1,serviceHostMember:1,hostUser:26,hostMember:26,ip:0
|
152
|
+
X-Ratelimit-Read:
|
153
|
+
- '1000'
|
154
|
+
X-Ratelimit-Service:
|
155
|
+
- 1000-Default
|
156
|
+
X-Ratelimit-System:
|
157
|
+
- 1000-Default
|
158
|
+
X-Ratelimit-Write:
|
159
|
+
- '1000'
|
160
|
+
X-Route:
|
161
|
+
- "/payment-rule"
|
162
|
+
X-Route-Time:
|
163
|
+
- '101'
|
164
|
+
body:
|
165
|
+
encoding: UTF-8
|
166
|
+
string: '{"response":{"status":"OK","count":1,"id":1192846,"start_element":0,"num_elements":100,"payment-rule":{"id":1192846,"code":"spec_payment_rule_code","name":"spec
|
167
|
+
payment rule","description":"","pricing_type":"cpm","cost_cpm":1,"revshare":null,"state":"active","start_date":null,"end_date":null,"profile_id":null,"timezone":"EST5EDT","priority":5,"last_modified":"2017-02-08
|
168
|
+
12:59:08","buyer_type":"both","max_revshare":null,"target_ecpm":null,"apply_cost_on_default":false,"demand_filter_action":"default","lifetime_budget":null,"lifetime_budget_imps":null,"daily_budget":null,"daily_budget_imps":null,"filtered_advertisers":null,"filtered_line_items":null,"filtered_campaigns":null},"dbg_info":{"instance":"01.hbapi.test104169.nym2","slave_hit":false,"db":"master","user::reads":24,"user::read_limit":1000,"user::read_limit_seconds":60,"user::writes":31,"user::write_limit":1000,"user::write_limit_seconds":60,"reads":13,"read_limit":1000,"read_limit_seconds":60,"writes":31,"write_limit":1000,"write_limit_seconds":60,"awesomesauce_cache_used":false,"count_cache_used":false,"uuid":"200ac4ee-b59b-5d90-91fd-199404314cea","warnings":[],"time":85.381984710693,"start_microtime":1486558748.5325,"version":"1.17.202","slave_lag":1040289,"member_last_modified_age":1486558748,"output_term":"payment-rule"}}}'
|
169
|
+
http_version:
|
170
|
+
recorded_at: Wed, 08 Feb 2017 12:59:06 GMT
|
171
|
+
- request:
|
172
|
+
method: put
|
173
|
+
uri: https://api-test.appnexus.com/payment-rule?id=1192846&publisher_id=925476
|
174
|
+
body:
|
175
|
+
encoding: UTF-8
|
176
|
+
string: '{"payment-rule":{"cost_cpm":2.0}}'
|
177
|
+
headers:
|
178
|
+
User-Agent:
|
179
|
+
- Faraday v0.11.0
|
180
|
+
Authorization:
|
181
|
+
- hbapi:171678:589b161b1dafd:nym2
|
182
|
+
Content-Type:
|
183
|
+
- application/json
|
184
|
+
Accept-Encoding:
|
185
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
186
|
+
Accept:
|
187
|
+
- "*/*"
|
188
|
+
response:
|
189
|
+
status:
|
190
|
+
code: 200
|
191
|
+
message: OK
|
192
|
+
headers:
|
193
|
+
Cache-Control:
|
194
|
+
- no-store, no-cache, must-revalidate, post-check=0, pre-check=0;no-cache
|
195
|
+
Content-Length:
|
196
|
+
- '1304'
|
197
|
+
Content-Type:
|
198
|
+
- application/json
|
199
|
+
Date:
|
200
|
+
- Wed, 08 Feb 2017 12:59:08 GMT
|
201
|
+
Expires:
|
202
|
+
- Thu, 19 Nov 1981 08:52:00 GMT
|
203
|
+
Pragma:
|
204
|
+
- no-cache
|
205
|
+
Server:
|
206
|
+
- Apache
|
207
|
+
Set-Cookie:
|
208
|
+
- HBFAPI_SESSID=hbapi%3A171678%3A589b161b1dafd%3Anym2; Path=/
|
209
|
+
X-Count-Read:
|
210
|
+
- user:24,member:13,serviceHostUser:0,serviceHostMember:0,hostUser:10,hostMember:10,ip:0
|
211
|
+
X-Count-Write:
|
212
|
+
- user:32,member:32,serviceHostUser:2,serviceHostMember:2,hostUser:27,hostMember:27,ip:0
|
213
|
+
X-Ratelimit-Read:
|
214
|
+
- '1000'
|
215
|
+
X-Ratelimit-Service:
|
216
|
+
- 1000-Default
|
217
|
+
X-Ratelimit-System:
|
218
|
+
- 1000-Default
|
219
|
+
X-Ratelimit-Write:
|
220
|
+
- '1000'
|
221
|
+
X-Route:
|
222
|
+
- "/payment-rule"
|
223
|
+
X-Route-Time:
|
224
|
+
- '253'
|
225
|
+
body:
|
226
|
+
encoding: UTF-8
|
227
|
+
string: '{"response":{"status":"OK","count":1,"id":"1192846","start_element":0,"num_elements":100,"payment-rule":{"id":1192846,"code":"spec_payment_rule_code","name":"spec
|
228
|
+
payment rule","description":"","pricing_type":"cpm","cost_cpm":2,"revshare":null,"state":"active","start_date":null,"end_date":null,"profile_id":null,"timezone":"EST5EDT","priority":5,"last_modified":"2017-02-08
|
229
|
+
12:59:09","buyer_type":"both","max_revshare":null,"target_ecpm":null,"apply_cost_on_default":false,"demand_filter_action":"default","lifetime_budget":null,"lifetime_budget_imps":null,"daily_budget":null,"daily_budget_imps":null,"filtered_advertisers":null,"filtered_line_items":null,"filtered_campaigns":null},"dbg_info":{"instance":"01.hbapi.test104169.nym2","slave_hit":false,"db":"master","user::reads":24,"user::read_limit":1000,"user::read_limit_seconds":60,"user::writes":32,"user::write_limit":1000,"user::write_limit_seconds":60,"reads":13,"read_limit":1000,"read_limit_seconds":60,"writes":32,"write_limit":1000,"write_limit_seconds":60,"awesomesauce_cache_used":false,"count_cache_used":false,"uuid":"f53fcc33-82d2-52f1-95b5-2469cbdd2b4d","warnings":[],"time":238.2071018219,"start_microtime":1486558748.9932,"version":"1.17.202","slave_lag":1040289,"member_last_modified_age":1486558748,"output_term":"payment-rule"}}}'
|
230
|
+
http_version:
|
231
|
+
recorded_at: Wed, 08 Feb 2017 12:59:07 GMT
|
232
|
+
- request:
|
233
|
+
method: delete
|
234
|
+
uri: https://api-test.appnexus.com/payment-rule?id=1192846
|
235
|
+
body:
|
236
|
+
encoding: US-ASCII
|
237
|
+
string: ''
|
238
|
+
headers:
|
239
|
+
User-Agent:
|
240
|
+
- Faraday v0.11.0
|
241
|
+
Authorization:
|
242
|
+
- hbapi:171678:589b161b1dafd:nym2
|
243
|
+
Accept-Encoding:
|
244
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
245
|
+
Accept:
|
246
|
+
- "*/*"
|
247
|
+
response:
|
248
|
+
status:
|
249
|
+
code: 200
|
250
|
+
message: OK
|
251
|
+
headers:
|
252
|
+
Cache-Control:
|
253
|
+
- no-store, no-cache, must-revalidate, post-check=0, pre-check=0;no-cache
|
254
|
+
Content-Length:
|
255
|
+
- '698'
|
256
|
+
Content-Type:
|
257
|
+
- application/json
|
258
|
+
Date:
|
259
|
+
- Wed, 08 Feb 2017 12:59:09 GMT
|
260
|
+
Expires:
|
261
|
+
- Thu, 19 Nov 1981 08:52:00 GMT
|
262
|
+
Pragma:
|
263
|
+
- no-cache
|
264
|
+
Server:
|
265
|
+
- Apache
|
266
|
+
Set-Cookie:
|
267
|
+
- HBFAPI_SESSID=hbapi%3A171678%3A589b161b1dafd%3Anym2; Path=/
|
268
|
+
X-Count-Read:
|
269
|
+
- user:24,member:13,serviceHostUser:0,serviceHostMember:0,hostUser:10,hostMember:10,ip:0
|
270
|
+
X-Count-Write:
|
271
|
+
- user:33,member:33,serviceHostUser:3,serviceHostMember:3,hostUser:28,hostMember:28,ip:0
|
272
|
+
X-Ratelimit-Read:
|
273
|
+
- '1000'
|
274
|
+
X-Ratelimit-Service:
|
275
|
+
- 1000-Default
|
276
|
+
X-Ratelimit-System:
|
277
|
+
- 1000-Default
|
278
|
+
X-Ratelimit-Write:
|
279
|
+
- '1000'
|
280
|
+
X-Route:
|
281
|
+
- "/payment-rule"
|
282
|
+
X-Route-Time:
|
283
|
+
- '1579'
|
284
|
+
body:
|
285
|
+
encoding: UTF-8
|
286
|
+
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":24,"user::read_limit":1000,"user::read_limit_seconds":60,"user::writes":33,"user::write_limit":1000,"user::write_limit_seconds":60,"reads":13,"read_limit":1000,"read_limit_seconds":60,"writes":33,"write_limit":1000,"write_limit_seconds":60,"awesomesauce_cache_used":false,"count_cache_used":false,"uuid":"26cf524a-4345-52a1-a0c7-b96c2c0993f8","warnings":[],"time":1565.465927124,"start_microtime":1486558749.7479,"version":"1.17.202","slave_lag":1040289,"member_last_modified_age":1486558749,"output_term":"not_found"}}}'
|
287
|
+
http_version:
|
288
|
+
recorded_at: Wed, 08 Feb 2017 12:59:09 GMT
|
289
|
+
- request:
|
290
|
+
method: delete
|
291
|
+
uri: https://api-test.appnexus.com/publisher?id=925476
|
292
|
+
body:
|
293
|
+
encoding: US-ASCII
|
294
|
+
string: ''
|
295
|
+
headers:
|
296
|
+
User-Agent:
|
297
|
+
- Faraday v0.11.0
|
298
|
+
Authorization:
|
299
|
+
- hbapi:171678:589b161b1dafd:nym2
|
300
|
+
Accept-Encoding:
|
301
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
302
|
+
Accept:
|
303
|
+
- "*/*"
|
304
|
+
response:
|
305
|
+
status:
|
306
|
+
code: 200
|
307
|
+
message: OK
|
308
|
+
headers:
|
309
|
+
Cache-Control:
|
310
|
+
- no-store, no-cache, must-revalidate, post-check=0, pre-check=0;no-cache
|
311
|
+
Content-Length:
|
312
|
+
- '699'
|
313
|
+
Content-Type:
|
314
|
+
- application/json
|
315
|
+
Date:
|
316
|
+
- Wed, 08 Feb 2017 12:59:11 GMT
|
317
|
+
Expires:
|
318
|
+
- Thu, 19 Nov 1981 08:52:00 GMT
|
319
|
+
Pragma:
|
320
|
+
- no-cache
|
321
|
+
Server:
|
322
|
+
- Apache
|
323
|
+
Set-Cookie:
|
324
|
+
- HBFAPI_SESSID=hbapi%3A171678%3A589b161b1dafd%3Anym2; Path=/
|
325
|
+
X-Count-Read:
|
326
|
+
- user:24,member:13,serviceHostUser:1,serviceHostMember:1,hostUser:10,hostMember:10,ip:0
|
327
|
+
X-Count-Write:
|
328
|
+
- user:34,member:34,serviceHostUser:2,serviceHostMember:2,hostUser:29,hostMember:29,ip:0
|
329
|
+
X-Ratelimit-Read:
|
330
|
+
- '1000'
|
331
|
+
X-Ratelimit-Service:
|
332
|
+
- 1000-Default
|
333
|
+
X-Ratelimit-System:
|
334
|
+
- 1000-Default
|
335
|
+
X-Ratelimit-Write:
|
336
|
+
- '1000'
|
337
|
+
X-Route:
|
338
|
+
- "/publisher"
|
339
|
+
X-Route-Time:
|
340
|
+
- '755'
|
341
|
+
body:
|
342
|
+
encoding: UTF-8
|
343
|
+
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":24,"user::read_limit":1000,"user::read_limit_seconds":60,"user::writes":34,"user::write_limit":1000,"user::write_limit_seconds":60,"reads":13,"read_limit":1000,"read_limit_seconds":60,"writes":34,"write_limit":1000,"write_limit_seconds":60,"awesomesauce_cache_used":false,"count_cache_used":false,"uuid":"ddeda1cc-d55b-5c2f-8e09-e97ef9288832","warnings":[],"time":735.58187484741,"start_microtime":1486558751.8063,"version":"1.17.202","slave_lag":1040289,"member_last_modified_age":1486558751,"output_term":"not_found"}}}'
|
344
|
+
http_version:
|
345
|
+
recorded_at: Wed, 08 Feb 2017 12:59:10 GMT
|
346
|
+
recorded_with: VCR 3.0.3
|