soapy_bing 0.3.1 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (139) hide show
  1. checksums.yaml +4 -4
  2. data/.ruby-version +1 -1
  3. data/Gemfile +1 -0
  4. data/README.md +18 -18
  5. data/Rakefile +1 -0
  6. data/lib/soapy_bing.rb +5 -1
  7. data/lib/soapy_bing/account.rb +1 -0
  8. data/lib/soapy_bing/accounts.rb +13 -17
  9. data/lib/soapy_bing/ads.rb +18 -41
  10. data/lib/soapy_bing/ads/campaign_performance_report.rb +49 -0
  11. data/lib/soapy_bing/ads/campaigns.rb +106 -0
  12. data/lib/soapy_bing/ads/parsers/bulk_csv_parser.rb +34 -0
  13. data/lib/soapy_bing/ads/parsers/report_csv_parser.rb +45 -0
  14. data/lib/soapy_bing/ads/report.rb +93 -0
  15. data/lib/soapy_bing/campaign_management.rb +21 -0
  16. data/lib/soapy_bing/country_codes.rb +17 -0
  17. data/lib/soapy_bing/country_codes.yml +727 -0
  18. data/lib/soapy_bing/customer.rb +1 -0
  19. data/lib/soapy_bing/helpers.rb +1 -1
  20. data/lib/soapy_bing/helpers/zip_downloader.rb +1 -0
  21. data/lib/soapy_bing/oauth_credentials.rb +1 -0
  22. data/lib/soapy_bing/param_guard.rb +1 -0
  23. data/lib/soapy_bing/service.rb +69 -0
  24. data/lib/soapy_bing/service_operation.rb +62 -0
  25. data/lib/soapy_bing/version.rb +2 -1
  26. data/lib/soapy_bing/wsdl/ad_insight.wsdl +1 -0
  27. data/lib/soapy_bing/wsdl/bulk.wsdl +1 -0
  28. data/lib/soapy_bing/wsdl/campaign_management.wsdl +1 -0
  29. data/lib/soapy_bing/wsdl/customer_billing.wsdl +1 -0
  30. data/lib/soapy_bing/wsdl/customer_management.wsdl +1 -0
  31. data/lib/soapy_bing/wsdl/reporting.wsdl +1 -0
  32. data/lib/tasks/console.rake +1 -0
  33. data/lib/tasks/coverage.rake +1 -0
  34. data/lib/tasks/spec.rake +1 -0
  35. data/lib/tasks/upate_wsdl_files.rake +23 -0
  36. data/lib/tasks/update_country_codes.rake +24 -0
  37. data/soapy_bing.gemspec +2 -1
  38. data/spec/fixtures/ads/campaign_performance_report.csv +37 -0
  39. data/spec/fixtures/ads/campaign_performance_report.json +170 -0
  40. data/spec/fixtures/ads/campaigns_by_account_id.csv +7 -0
  41. data/spec/fixtures/{bulk/campaigns.json → ads/campaigns_by_account_id.json} +496 -240
  42. data/spec/fixtures/ads/campaigns_by_campaign_ids.csv +5 -0
  43. data/spec/fixtures/ads/campaigns_by_campaign_ids.json +910 -0
  44. data/spec/fixtures/vcr_cassettes/SoapyBing_Accounts/_list/returns_a_list_of_SoapyBing_Account_objects.yml +27 -27
  45. data/spec/fixtures/vcr_cassettes/SoapyBing_Ads/_campaigns/by_account_id/returns_parsed_rows.yml +301 -0
  46. data/spec/fixtures/vcr_cassettes/SoapyBing_Ads/_campaigns/by_campaign_ids/returns_parsed_rows.yml +300 -0
  47. data/spec/fixtures/vcr_cassettes/SoapyBing_CampaignManagement/_get_geo_locations/returns_a_list_of_geo_locations_hashes.yml +154 -0
  48. data/spec/fixtures/vcr_cassettes/campaign_performance_report/with_pending_status.yml +65 -94
  49. data/spec/fixtures/vcr_cassettes/campaign_performance_report/with_successful_empty_response.yml +511 -0
  50. data/spec/fixtures/vcr_cassettes/campaign_performance_report/with_successful_response.yml +384 -0
  51. data/spec/integration/soapy_bing/accounts_spec.rb +1 -0
  52. data/spec/integration/soapy_bing/ads_campaigns_spec.rb +85 -0
  53. data/spec/integration/soapy_bing/campaign_management_spec.rb +22 -0
  54. data/spec/integration/soapy_bing/oauth_credentials_spec.rb +1 -0
  55. data/spec/simplecov_setup.rb +1 -0
  56. data/spec/soapy_bing/account_spec.rb +6 -2
  57. data/spec/soapy_bing/accounts_spec.rb +47 -0
  58. data/spec/soapy_bing/ads/campaign_performance_report_spec.rb +79 -0
  59. data/spec/soapy_bing/ads/campaigns_spec.rb +99 -0
  60. data/spec/soapy_bing/ads/{bulk/parsers/csv_parser_spec.rb → parsers/bulk_csv_parser_spec.rb} +5 -4
  61. data/spec/soapy_bing/ads/{reports/parsers/csv_parser_spec.rb → parsers/report_csv_parser_spec.rb} +6 -4
  62. data/spec/soapy_bing/country_codes_spec.rb +39 -0
  63. data/spec/soapy_bing/helpers/zip_downloader_spec.rb +2 -0
  64. data/spec/soapy_bing/oauth_credentials_spec.rb +6 -2
  65. data/spec/soapy_bing/param_guard_spec.rb +2 -0
  66. data/spec/soapy_bing/service_spec.rb +56 -0
  67. data/spec/spec_helper.rb +1 -0
  68. data/spec/support/dotenv.rb +1 -0
  69. data/spec/support/vcr.rb +75 -6
  70. metadata +74 -118
  71. data/lib/soapy_bing/ads/bulk.rb +0 -3
  72. data/lib/soapy_bing/ads/bulk/campaigns.rb +0 -65
  73. data/lib/soapy_bing/ads/bulk/parsers.rb +0 -2
  74. data/lib/soapy_bing/ads/bulk/parsers/csv_parser.rb +0 -35
  75. data/lib/soapy_bing/ads/reports.rb +0 -4
  76. data/lib/soapy_bing/ads/reports/base.rb +0 -74
  77. data/lib/soapy_bing/ads/reports/campaign_performance_report.rb +0 -24
  78. data/lib/soapy_bing/ads/reports/parsers.rb +0 -2
  79. data/lib/soapy_bing/ads/reports/parsers/csv_parser.rb +0 -46
  80. data/lib/soapy_bing/helpers/class_name.rb +0 -10
  81. data/lib/soapy_bing/soap.rb +0 -4
  82. data/lib/soapy_bing/soap/request.rb +0 -10
  83. data/lib/soapy_bing/soap/request/base.rb +0 -38
  84. data/lib/soapy_bing/soap/request/download_campaigns_by_account_ids_request.rb +0 -17
  85. data/lib/soapy_bing/soap/request/get_accounts_info_request.rb +0 -17
  86. data/lib/soapy_bing/soap/request/get_ad_groups_by_campaign_id_request.rb +0 -17
  87. data/lib/soapy_bing/soap/request/get_ads_by_ad_group_id_request.rb +0 -17
  88. data/lib/soapy_bing/soap/request/get_bulk_download_status_request.rb +0 -17
  89. data/lib/soapy_bing/soap/request/get_targets_by_campaign_ids_request.rb +0 -17
  90. data/lib/soapy_bing/soap/request/poll_generate_report_request.rb +0 -34
  91. data/lib/soapy_bing/soap/request/submit_generate_report_request.rb +0 -17
  92. data/lib/soapy_bing/soap/response.rb +0 -14
  93. data/lib/soapy_bing/soap/response/base.rb +0 -17
  94. data/lib/soapy_bing/soap/response/download_campaigns_by_account_ids_response.rb +0 -12
  95. data/lib/soapy_bing/soap/response/get_accounts_info_response.rb +0 -12
  96. data/lib/soapy_bing/soap/response/get_ad_groups_by_campaign_id_response.rb +0 -12
  97. data/lib/soapy_bing/soap/response/get_ads_by_ad_group_id_response.rb +0 -12
  98. data/lib/soapy_bing/soap/response/get_bulk_download_status_response.rb +0 -17
  99. data/lib/soapy_bing/soap/response/get_targets_by_campaign_ids_response.rb +0 -12
  100. data/lib/soapy_bing/soap/response/payload.rb +0 -28
  101. data/lib/soapy_bing/soap/response/poll_generate_report_response.rb +0 -14
  102. data/lib/soapy_bing/soap/response/report_status.rb +0 -34
  103. data/lib/soapy_bing/soap/response/submit_generate_report_response.rb +0 -12
  104. data/lib/soapy_bing/soap/template_renderer.rb +0 -22
  105. data/lib/soapy_bing/soap/templates/download_campaigns_by_account_ids.xml.erb +0 -22
  106. data/lib/soapy_bing/soap/templates/get_accounts_info.xml.erb +0 -12
  107. data/lib/soapy_bing/soap/templates/get_ad_groups_by_campaign_id.xml.erb +0 -15
  108. data/lib/soapy_bing/soap/templates/get_ads_by_ad_group_id.xml.erb +0 -15
  109. data/lib/soapy_bing/soap/templates/get_bulk_download_status.xml.erb +0 -15
  110. data/lib/soapy_bing/soap/templates/get_targets_by_campaign_ids.xml.erb +0 -20
  111. data/lib/soapy_bing/soap/templates/poll_generate_report.xml.erb +0 -18
  112. data/lib/soapy_bing/soap/templates/submit_generate_report.xml.erb +0 -46
  113. data/spec/fixtures/bulk/campaigns.csv +0 -8
  114. data/spec/fixtures/get_ad_groups_by_campaign_id.json +0 -587
  115. data/spec/fixtures/get_ads_by_ad_group_id.json +0 -218
  116. data/spec/fixtures/get_targets_by_campaign_ids.json +0 -81
  117. data/spec/fixtures/reports/campaign_performance_report.csv +0 -37
  118. data/spec/fixtures/reports/campaign_performance_report.json +0 -146
  119. data/spec/fixtures/soap_templates/simple.xml.erb +0 -2
  120. data/spec/fixtures/vcr_cassettes/SoapyBing_Ads/_get_ad_groups_by_campaign_id/1_1_1.yml +0 -150
  121. data/spec/fixtures/vcr_cassettes/SoapyBing_Ads/_get_ads_by_ad_group_id/1_2_1.yml +0 -141
  122. data/spec/fixtures/vcr_cassettes/SoapyBing_Ads/_get_targets_by_campaign_ids/1_3_1.yml +0 -111
  123. data/spec/fixtures/vcr_cassettes/SoapyBing_Ads_Bulk_Campaigns/_result_file_url/returns_result_file_url.yml +0 -216
  124. data/spec/fixtures/vcr_cassettes/campaign_performance_report/with_successful_status.yml +0 -284
  125. data/spec/integration/soapy_bing/ads/bulk/campaigns_spec.rb +0 -35
  126. data/spec/integration/soapy_bing/ads/reports/campaign_performance_report_spec.rb +0 -40
  127. data/spec/integration/soapy_bing/ads_spec.rb +0 -32
  128. data/spec/soapy_bing/ads/reports/campaign_performance_report_spec.rb +0 -42
  129. data/spec/soapy_bing/ads_spec.rb +0 -33
  130. data/spec/soapy_bing/helpers/class_name_spec.rb +0 -15
  131. data/spec/soapy_bing/soap/request/base_spec.rb +0 -55
  132. data/spec/soapy_bing/soap/request/poll_generate_report_request_spec.rb +0 -60
  133. data/spec/soapy_bing/soap/response/base_spec.rb +0 -13
  134. data/spec/soapy_bing/soap/response/get_bulk_download_status_response_spec.rb +0 -60
  135. data/spec/soapy_bing/soap/response/payload_spec.rb +0 -48
  136. data/spec/soapy_bing/soap/response/poll_generate_report_response_spec.rb +0 -26
  137. data/spec/soapy_bing/soap/response/report_status_spec.rb +0 -92
  138. data/spec/soapy_bing/soap/response/submit_generate_report_response_spec.rb +0 -20
  139. data/spec/soapy_bing/soap/template_renderer_spec.rb +0 -25
@@ -35,37 +35,35 @@ http_interactions:
35
35
  X-Xss-Protection:
36
36
  - 1; mode=block
37
37
  Date:
38
- - Tue, 16 Aug 2016 01:02:11 GMT
38
+ - Mon, 05 Jun 2017 15:01:55 GMT
39
39
  Connection:
40
40
  - close
41
41
  body:
42
42
  encoding: UTF-8
43
43
  string: '{"token_type":"bearer","expires_in":3600,"scope":"bingads.manage","access_token":"bing-ads-oauth-authentication-token","refresh_token":"bing-ads-oauth-refresh-token","user_id":"bing-ads-oauth-user-id"}'
44
44
  http_version:
45
- recorded_at: Tue, 16 Aug 2016 01:02:11 GMT
45
+ recorded_at: Mon, 05 Jun 2017 15:01:55 GMT
46
46
  - request:
47
47
  method: post
48
- uri: https://clientcenter.api.bingads.microsoft.com/Api/CustomerManagement/v9/CustomerManagementService.svc
48
+ uri: https://clientcenter.api.bingads.microsoft.com/Api/CustomerManagement/v11/CustomerManagementService.svc
49
49
  body:
50
50
  encoding: UTF-8
51
- string: |
52
- <?xml version="1.0" encoding="UTF-8"?>
53
- <s:Envelope xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
54
- <s:Header xmlns="https://bingads.microsoft.com/Customer/v9">
55
- <Action mustUnderstand="1">GetAccountsInfo</Action>
56
- <AuthenticationToken>bing-ads-oauth-authentication-token</AuthenticationToken>
57
- <DeveloperToken>bing-ads-developer-token</DeveloperToken>
58
- </s:Header>
59
- <s:Body>
60
- <GetAccountsInfoRequest xmlns="https://bingads.microsoft.com/Customer/v9">
61
- </GetAccountsInfoRequest>
62
- </s:Body>
63
- </s:Envelope>
51
+ string: <?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema"
52
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tns="https://bingads.microsoft.com/Customer/v11"
53
+ xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Header><tns:Action>GetAccountsInfo</tns:Action><tns:AuthenticationToken>bing-ads-oauth-authentication-token</tns:AuthenticationToken><tns:DeveloperToken>bing-ads-developer-token</tns:DeveloperToken><tns:CustomerAccountId>bing-ads-account-id</tns:CustomerAccountId></env:Header><env:Body><tns:GetAccountsInfoRequest></tns:GetAccountsInfoRequest></env:Body></env:Envelope>
64
54
  headers:
55
+ Soapaction:
56
+ - '"GetAccountsInfo"'
65
57
  Content-Type:
66
58
  - text/xml;charset=UTF-8
67
- Soapaction:
68
- - GetAccountsInfo
59
+ Content-Length:
60
+ - '1596'
61
+ Accept-Encoding:
62
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
63
+ Accept:
64
+ - "*/*"
65
+ User-Agent:
66
+ - Ruby
69
67
  response:
70
68
  status:
71
69
  code: 200
@@ -73,28 +71,30 @@ http_interactions:
73
71
  headers:
74
72
  Cache-Control:
75
73
  - private
76
- Content-Length:
77
- - '1078'
78
74
  Content-Type:
79
75
  - text/xml; charset=utf-8
76
+ Vary:
77
+ - Accept-Encoding
80
78
  Server:
81
- - Microsoft-IIS/8.0
79
+ - Microsoft-IIS/8.5
82
80
  X-Aspnet-Version:
83
81
  - 4.0.30319
84
82
  X-Powered-By:
85
83
  - ASP.NET
86
84
  Date:
87
- - Tue, 16 Aug 2016 01:02:12 GMT
85
+ - Mon, 05 Jun 2017 15:01:56 GMT
86
+ Content-Length:
87
+ - '589'
88
88
  body:
89
- encoding: UTF-8
89
+ encoding: ASCII-8BIT
90
90
  string: <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Header><h:TrackingId
91
- xmlns:h="https://bingads.microsoft.com/Customer/v9">bing-ads-report-tracking-id</h:TrackingId></s:Header><s:Body><GetAccountsInfoResponse
92
- xmlns="https://bingads.microsoft.com/Customer/v9"><AccountsInfo xmlns:a="https://bingads.microsoft.com/Customer/v9/Entities"
93
- xmlns:i="http://www.w3.org/2001/XMLSchema-instance"><a:AccountInfo><a:Id>1111111</a:Id><a:Name>ad2games
91
+ xmlns:h="https://bingads.microsoft.com/Customer/v11">bing-ads-report-tracking-id</h:TrackingId></s:Header><s:Body><GetAccountsInfoResponse
92
+ xmlns="https://bingads.microsoft.com/Customer/v11"><AccountsInfo xmlns:a="https://bingads.microsoft.com/Customer/v11/Entities"
93
+ xmlns:i="http://www.w3.org/2001/XMLSchema-instance"><a:AccountInfo><a:Id>bing-ads-account-id</a:Id><a:Name>ad2games
94
94
  GmbH</a:Name><a:Number>X000F9Z7</a:Number><a:AccountLifeCycleStatus>Active</a:AccountLifeCycleStatus><a:PauseReason
95
95
  i:nil="true"/></a:AccountInfo><a:AccountInfo><a:Id>2222222</a:Id><a:Name>SuperBrowserGames.com</a:Name><a:Number>X000K92F</a:Number><a:AccountLifeCycleStatus>Active</a:AccountLifeCycleStatus><a:PauseReason
96
96
  i:nil="true"/></a:AccountInfo><a:AccountInfo><a:Id>33333333</a:Id><a:Name>Wildworks.com</a:Name><a:Number>B008CXY6</a:Number><a:AccountLifeCycleStatus>Active</a:AccountLifeCycleStatus><a:PauseReason
97
97
  i:nil="true"/></a:AccountInfo></AccountsInfo></GetAccountsInfoResponse></s:Body></s:Envelope>
98
98
  http_version:
99
- recorded_at: Tue, 16 Aug 2016 01:02:12 GMT
99
+ recorded_at: Mon, 05 Jun 2017 15:01:56 GMT
100
100
  recorded_with: VCR 3.0.3
@@ -0,0 +1,301 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://login.live.com/oauth20_token.srf
6
+ body:
7
+ encoding: UTF-8
8
+ string: client_id=bing-ads-oauth-client-id&client_secret=bing-ads-oauth-client-secret&grant_type=refresh_token&refresh_token=bing-ads-oauth-refresh-token
9
+ headers:
10
+ Accept-Encoding:
11
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
12
+ Accept:
13
+ - "*/*"
14
+ User-Agent:
15
+ - Ruby
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ Cache-Control:
22
+ - no-store
23
+ Pragma:
24
+ - no-cache
25
+ Content-Length:
26
+ - '1509'
27
+ Content-Type:
28
+ - application/json
29
+ Server:
30
+ - Microsoft-IIS/8.5
31
+ X-Content-Type-Options:
32
+ - nosniff
33
+ Strict-Transport-Security:
34
+ - max-age=31536000
35
+ X-Xss-Protection:
36
+ - 1; mode=block
37
+ Date:
38
+ - Thu, 22 Jun 2017 12:21:02 GMT
39
+ Connection:
40
+ - close
41
+ body:
42
+ encoding: UTF-8
43
+ string: '{"token_type":"bearer","expires_in":3600,"scope":"bingads.manage","access_token":"bing-ads-oauth-authentication-token","refresh_token":"bing-ads-oauth-refresh-token","user_id":"bing-ads-oauth-user-id"}'
44
+ http_version:
45
+ recorded_at: Thu, 22 Jun 2017 12:21:03 GMT
46
+ - request:
47
+ method: post
48
+ uri: https://bulk.api.bingads.microsoft.com/Api/Advertiser/CampaignManagement/V11/BulkService.svc
49
+ body:
50
+ encoding: UTF-8
51
+ string: <?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema"
52
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tns="https://bingads.microsoft.com/CampaignManagement/v11"
53
+ xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Header><tns:Action>DownloadCampaignsByAccountIds</tns:Action><tns:AuthenticationToken>bing-ads-oauth-authentication-token</tns:AuthenticationToken><tns:DeveloperToken>bing-ads-developer-token</tns:DeveloperToken><tns:CustomerAccountId>bing-ads-account-id</tns:CustomerAccountId></env:Header><env:Body><tns:DownloadCampaignsByAccountIdsRequest><tns:AccountIds
54
+ xmlns:a1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"><a1:long>bing-ads-account-id</a1:long></tns:AccountIds><tns:DownloadEntities><tns:DownloadEntity>Campaigns</tns:DownloadEntity></tns:DownloadEntities><tns:DownloadFileType>Csv</tns:DownloadFileType><tns:FormatVersion>5.0</tns:FormatVersion></tns:DownloadCampaignsByAccountIdsRequest></env:Body></env:Envelope>
55
+ headers:
56
+ Soapaction:
57
+ - '"DownloadCampaignsByAccountIds"'
58
+ Content-Type:
59
+ - text/xml;charset=UTF-8
60
+ Content-Length:
61
+ - '1961'
62
+ Accept-Encoding:
63
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
64
+ Accept:
65
+ - "*/*"
66
+ User-Agent:
67
+ - Ruby
68
+ response:
69
+ status:
70
+ code: 200
71
+ message: OK
72
+ headers:
73
+ Cache-Control:
74
+ - private
75
+ Content-Type:
76
+ - text/xml; charset=utf-8
77
+ Vary:
78
+ - Accept-Encoding
79
+ Server:
80
+ - Microsoft-IIS/8.5
81
+ X-Aspnet-Version:
82
+ - 4.0.30319
83
+ X-Powered-By:
84
+ - ASP.NET
85
+ Date:
86
+ - Thu, 22 Jun 2017 12:21:03 GMT
87
+ Content-Length:
88
+ - '256'
89
+ body:
90
+ encoding: ASCII-8BIT
91
+ string: <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Header><h:TrackingId
92
+ xmlns:h="https://bingads.microsoft.com/CampaignManagement/v11">bing-ads-report-tracking-id</h:TrackingId></s:Header><s:Body><DownloadCampaignsByAccountIdsResponse
93
+ xmlns="https://bingads.microsoft.com/CampaignManagement/v11"><DownloadRequestId>1099516605770</DownloadRequestId></DownloadCampaignsByAccountIdsResponse></s:Body></s:Envelope>
94
+ http_version:
95
+ recorded_at: Thu, 22 Jun 2017 12:21:04 GMT
96
+ - request:
97
+ method: post
98
+ uri: https://bulk.api.bingads.microsoft.com/Api/Advertiser/CampaignManagement/V11/BulkService.svc
99
+ body:
100
+ encoding: UTF-8
101
+ string: <?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema"
102
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tns="https://bingads.microsoft.com/CampaignManagement/v11"
103
+ xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Header><tns:Action>GetBulkDownloadStatus</tns:Action><tns:AuthenticationToken>bing-ads-oauth-authentication-token</tns:AuthenticationToken><tns:DeveloperToken>bing-ads-developer-token</tns:DeveloperToken><tns:CustomerAccountId>bing-ads-account-id</tns:CustomerAccountId></env:Header><env:Body><tns:GetBulkDownloadStatusRequest><tns:RequestId>1099516605770</tns:RequestId></tns:GetBulkDownloadStatusRequest></env:Body></env:Envelope>
104
+ headers:
105
+ Soapaction:
106
+ - '"GetBulkDownloadStatus"'
107
+ Content-Type:
108
+ - text/xml;charset=UTF-8
109
+ Content-Length:
110
+ - '1668'
111
+ Accept-Encoding:
112
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
113
+ Accept:
114
+ - "*/*"
115
+ User-Agent:
116
+ - Ruby
117
+ response:
118
+ status:
119
+ code: 200
120
+ message: OK
121
+ headers:
122
+ Cache-Control:
123
+ - private
124
+ Content-Type:
125
+ - text/xml; charset=utf-8
126
+ Vary:
127
+ - Accept-Encoding
128
+ Server:
129
+ - Microsoft-IIS/8.5
130
+ X-Aspnet-Version:
131
+ - 4.0.30319
132
+ X-Powered-By:
133
+ - ASP.NET
134
+ Date:
135
+ - Thu, 22 Jun 2017 12:21:05 GMT
136
+ Content-Length:
137
+ - '379'
138
+ body:
139
+ encoding: ASCII-8BIT
140
+ string: <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Header><h:TrackingId
141
+ xmlns:h="https://bingads.microsoft.com/CampaignManagement/v11">bing-ads-report-tracking-id</h:TrackingId></s:Header><s:Body><GetBulkDownloadStatusResponse
142
+ xmlns="https://bingads.microsoft.com/CampaignManagement/v11"><Errors i:nil="true"
143
+ xmlns:i="http://www.w3.org/2001/XMLSchema-instance"/><ForwardCompatibilityMap
144
+ xmlns:a="http://schemas.datacontract.org/2004/07/System.Collections.Generic"
145
+ xmlns:i="http://www.w3.org/2001/XMLSchema-instance"/><PercentComplete>1</PercentComplete><RequestStatus>InProgress</RequestStatus><ResultFileUrl
146
+ i:nil="true" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"/></GetBulkDownloadStatusResponse></s:Body></s:Envelope>
147
+ http_version:
148
+ recorded_at: Thu, 22 Jun 2017 12:21:05 GMT
149
+ - request:
150
+ method: post
151
+ uri: https://bulk.api.bingads.microsoft.com/Api/Advertiser/CampaignManagement/V11/BulkService.svc
152
+ body:
153
+ encoding: UTF-8
154
+ string: <?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema"
155
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tns="https://bingads.microsoft.com/CampaignManagement/v11"
156
+ xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Header><tns:Action>GetBulkDownloadStatus</tns:Action><tns:AuthenticationToken>bing-ads-oauth-authentication-token</tns:AuthenticationToken><tns:DeveloperToken>bing-ads-developer-token</tns:DeveloperToken><tns:CustomerAccountId>bing-ads-account-id</tns:CustomerAccountId></env:Header><env:Body><tns:GetBulkDownloadStatusRequest><tns:RequestId>1099516605770</tns:RequestId></tns:GetBulkDownloadStatusRequest></env:Body></env:Envelope>
157
+ headers:
158
+ Soapaction:
159
+ - '"GetBulkDownloadStatus"'
160
+ Content-Type:
161
+ - text/xml;charset=UTF-8
162
+ Content-Length:
163
+ - '1668'
164
+ Accept-Encoding:
165
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
166
+ Accept:
167
+ - "*/*"
168
+ User-Agent:
169
+ - Ruby
170
+ response:
171
+ status:
172
+ code: 200
173
+ message: OK
174
+ headers:
175
+ Cache-Control:
176
+ - private
177
+ Content-Type:
178
+ - text/xml; charset=utf-8
179
+ Vary:
180
+ - Accept-Encoding
181
+ Server:
182
+ - Microsoft-IIS/8.5
183
+ X-Aspnet-Version:
184
+ - 4.0.30319
185
+ X-Powered-By:
186
+ - ASP.NET
187
+ Date:
188
+ - Thu, 22 Jun 2017 12:23:05 GMT
189
+ Content-Length:
190
+ - '568'
191
+ body:
192
+ encoding: ASCII-8BIT
193
+ string: <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Header><h:TrackingId
194
+ xmlns:h="https://bingads.microsoft.com/CampaignManagement/v11">bing-ads-report-tracking-id</h:TrackingId></s:Header><s:Body><GetBulkDownloadStatusResponse
195
+ xmlns="https://bingads.microsoft.com/CampaignManagement/v11"><Errors i:nil="true"
196
+ xmlns:i="http://www.w3.org/2001/XMLSchema-instance"/><ForwardCompatibilityMap
197
+ xmlns:a="http://schemas.datacontract.org/2004/07/System.Collections.Generic"
198
+ xmlns:i="http://www.w3.org/2001/XMLSchema-instance"/><PercentComplete>100</PercentComplete><RequestStatus>Completed</RequestStatus><ResultFileUrl>https://bingadsappsstorageprod.blob.core.windows.net/bulkdownloadresultfiles/DownloadHierarchy-1099516605770-70746a3c-029d-4196-84f5-4b31e7d36bd0.zip?sv=2015-12-11&amp;sr=b&amp;sig=X5Ff0kNyHNtnWzKjt5sbJfwtY89nfvL1yzsMXPk337c%3D&amp;st=2017-06-22T12%3A18%3A06Z&amp;se=2017-06-22T12%3A43%3A06Z&amp;sp=rl</ResultFileUrl></GetBulkDownloadStatusResponse></s:Body></s:Envelope>
199
+ http_version:
200
+ recorded_at: Thu, 22 Jun 2017 12:23:06 GMT
201
+ - request:
202
+ method: get
203
+ uri: https://bingadsappsstorageprod.blob.core.windows.net/bulkdownloadresultfiles/DownloadHierarchy-1099516605770-70746a3c-029d-4196-84f5-4b31e7d36bd0.zip?se=2017-06-22T12:43:06Z&sig=X5Ff0kNyHNtnWzKjt5sbJfwtY89nfvL1yzsMXPk337c=&sp=rl&sr=b&st=2017-06-22T12:18:06Z&sv=2015-12-11
204
+ body:
205
+ encoding: US-ASCII
206
+ string: ''
207
+ headers:
208
+ Accept-Encoding:
209
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
210
+ Accept:
211
+ - "*/*"
212
+ User-Agent:
213
+ - Ruby
214
+ response:
215
+ status:
216
+ code: 200
217
+ message: OK
218
+ headers:
219
+ Content-Length:
220
+ - '5523'
221
+ Content-Type:
222
+ - application/zip
223
+ Content-Md5:
224
+ - 0WWiuUqJh/swr1bYv1rCyw==
225
+ Last-Modified:
226
+ - Thu, 22 Jun 2017 12:21:06 GMT
227
+ Accept-Ranges:
228
+ - bytes
229
+ Etag:
230
+ - '"0x8D4B969284A56DB"'
231
+ Vary:
232
+ - Origin
233
+ Server:
234
+ - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
235
+ X-Ms-Request-Id:
236
+ - 98bcc00e-0001-00c5-1a52-eb4514000000
237
+ X-Ms-Version:
238
+ - '2015-12-11'
239
+ X-Ms-Meta-Retentionlookupkey:
240
+ - MultiAccountDownloadProd
241
+ X-Ms-Meta-Trackingid:
242
+ - 4ddc137b-e3e0-49f3-9ec8-58f4b336983f
243
+ X-Ms-Meta-Requestid:
244
+ - fe92bc93-4deb-4640-abd4-5b5af9fce69b
245
+ X-Ms-Meta-Sessionid:
246
+ - fe92bc93-4deb-4640-abd4-5b5af9fce69b
247
+ X-Ms-Meta-Creatormachinename:
248
+ - EAP010040205022
249
+ X-Ms-Lease-Status:
250
+ - unlocked
251
+ X-Ms-Lease-State:
252
+ - available
253
+ X-Ms-Blob-Type:
254
+ - BlockBlob
255
+ Content-Disposition:
256
+ - attachment;filename=DownloadHierarchy-1099516605770-70746a3c-029d-4196-84f5-4b31e7d36bd0.zip
257
+ X-Ms-Server-Encrypted:
258
+ - 'false'
259
+ Date:
260
+ - Thu, 22 Jun 2017 12:23:06 GMT
261
+ body:
262
+ encoding: ASCII-8BIT
263
+ string: !binary |-
264
+ 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
299
+ http_version:
300
+ recorded_at: Thu, 22 Jun 2017 12:23:08 GMT
301
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,300 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://login.live.com/oauth20_token.srf
6
+ body:
7
+ encoding: UTF-8
8
+ string: client_id=bing-ads-oauth-client-id&client_secret=bing-ads-oauth-client-secret&grant_type=refresh_token&refresh_token=bing-ads-oauth-refresh-token
9
+ headers:
10
+ Accept-Encoding:
11
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
12
+ Accept:
13
+ - "*/*"
14
+ User-Agent:
15
+ - Ruby
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ Cache-Control:
22
+ - no-store
23
+ Pragma:
24
+ - no-cache
25
+ Content-Length:
26
+ - '1509'
27
+ Content-Type:
28
+ - application/json
29
+ Server:
30
+ - Microsoft-IIS/8.5
31
+ X-Content-Type-Options:
32
+ - nosniff
33
+ Strict-Transport-Security:
34
+ - max-age=31536000
35
+ X-Xss-Protection:
36
+ - 1; mode=block
37
+ Date:
38
+ - Thu, 22 Jun 2017 12:18:56 GMT
39
+ Connection:
40
+ - close
41
+ body:
42
+ encoding: UTF-8
43
+ string: '{"token_type":"bearer","expires_in":3600,"scope":"bingads.manage","access_token":"bing-ads-oauth-authentication-token","refresh_token":"bing-ads-oauth-refresh-token","user_id":"bing-ads-oauth-user-id"}'
44
+ http_version:
45
+ recorded_at: Thu, 22 Jun 2017 12:18:57 GMT
46
+ - request:
47
+ method: post
48
+ uri: https://bulk.api.bingads.microsoft.com/Api/Advertiser/CampaignManagement/V11/BulkService.svc
49
+ body:
50
+ encoding: UTF-8
51
+ string: <?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema"
52
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tns="https://bingads.microsoft.com/CampaignManagement/v11"
53
+ xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Header><tns:Action>DownloadCampaignsByCampaignIds</tns:Action><tns:AuthenticationToken>bing-ads-oauth-authentication-token</tns:AuthenticationToken><tns:DeveloperToken>bing-ads-developer-token</tns:DeveloperToken><tns:CustomerAccountId>bing-ads-account-id</tns:CustomerAccountId></env:Header><env:Body><tns:DownloadCampaignsByCampaignIdsRequest><tns:Campaigns><tns:CampaignScope><tns:CampaignId>90868686</tns:CampaignId><tns:ParentAccountId>bing-ads-account-id</tns:ParentAccountId></tns:CampaignScope><tns:CampaignScope><tns:CampaignId>90876598</tns:CampaignId><tns:ParentAccountId>bing-ads-account-id</tns:ParentAccountId></tns:CampaignScope></tns:Campaigns><tns:DownloadEntities><tns:DownloadEntity>Campaigns</tns:DownloadEntity></tns:DownloadEntities><tns:DownloadFileType>Csv</tns:DownloadFileType><tns:FormatVersion>5.0</tns:FormatVersion></tns:DownloadCampaignsByCampaignIdsRequest></env:Body></env:Envelope>
54
+ headers:
55
+ Soapaction:
56
+ - '"DownloadCampaignsByCampaignIds"'
57
+ Content-Type:
58
+ - text/xml;charset=UTF-8
59
+ Content-Length:
60
+ - '2127'
61
+ Accept-Encoding:
62
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
63
+ Accept:
64
+ - "*/*"
65
+ User-Agent:
66
+ - Ruby
67
+ response:
68
+ status:
69
+ code: 200
70
+ message: OK
71
+ headers:
72
+ Cache-Control:
73
+ - private
74
+ Content-Type:
75
+ - text/xml; charset=utf-8
76
+ Vary:
77
+ - Accept-Encoding
78
+ Server:
79
+ - Microsoft-IIS/8.5
80
+ X-Aspnet-Version:
81
+ - 4.0.30319
82
+ X-Powered-By:
83
+ - ASP.NET
84
+ Date:
85
+ - Thu, 22 Jun 2017 12:18:57 GMT
86
+ Content-Length:
87
+ - '253'
88
+ body:
89
+ encoding: ASCII-8BIT
90
+ string: <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Header><h:TrackingId
91
+ xmlns:h="https://bingads.microsoft.com/CampaignManagement/v11">bing-ads-report-tracking-id</h:TrackingId></s:Header><s:Body><DownloadCampaignsByCampaignIdsResponse
92
+ xmlns="https://bingads.microsoft.com/CampaignManagement/v11"><DownloadRequestId>1099516605693</DownloadRequestId></DownloadCampaignsByCampaignIdsResponse></s:Body></s:Envelope>
93
+ http_version:
94
+ recorded_at: Thu, 22 Jun 2017 12:18:58 GMT
95
+ - request:
96
+ method: post
97
+ uri: https://bulk.api.bingads.microsoft.com/Api/Advertiser/CampaignManagement/V11/BulkService.svc
98
+ body:
99
+ encoding: UTF-8
100
+ string: <?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema"
101
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tns="https://bingads.microsoft.com/CampaignManagement/v11"
102
+ xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Header><tns:Action>GetBulkDownloadStatus</tns:Action><tns:AuthenticationToken>bing-ads-oauth-authentication-token</tns:AuthenticationToken><tns:DeveloperToken>bing-ads-developer-token</tns:DeveloperToken><tns:CustomerAccountId>bing-ads-account-id</tns:CustomerAccountId></env:Header><env:Body><tns:GetBulkDownloadStatusRequest><tns:RequestId>1099516605693</tns:RequestId></tns:GetBulkDownloadStatusRequest></env:Body></env:Envelope>
103
+ headers:
104
+ Soapaction:
105
+ - '"GetBulkDownloadStatus"'
106
+ Content-Type:
107
+ - text/xml;charset=UTF-8
108
+ Content-Length:
109
+ - '1668'
110
+ Accept-Encoding:
111
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
112
+ Accept:
113
+ - "*/*"
114
+ User-Agent:
115
+ - Ruby
116
+ response:
117
+ status:
118
+ code: 200
119
+ message: OK
120
+ headers:
121
+ Cache-Control:
122
+ - private
123
+ Content-Type:
124
+ - text/xml; charset=utf-8
125
+ Vary:
126
+ - Accept-Encoding
127
+ Server:
128
+ - Microsoft-IIS/8.5
129
+ X-Aspnet-Version:
130
+ - 4.0.30319
131
+ X-Powered-By:
132
+ - ASP.NET
133
+ Date:
134
+ - Thu, 22 Jun 2017 12:18:59 GMT
135
+ Content-Length:
136
+ - '381'
137
+ body:
138
+ encoding: ASCII-8BIT
139
+ string: <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Header><h:TrackingId
140
+ xmlns:h="https://bingads.microsoft.com/CampaignManagement/v11">bing-ads-report-tracking-id</h:TrackingId></s:Header><s:Body><GetBulkDownloadStatusResponse
141
+ xmlns="https://bingads.microsoft.com/CampaignManagement/v11"><Errors i:nil="true"
142
+ xmlns:i="http://www.w3.org/2001/XMLSchema-instance"/><ForwardCompatibilityMap
143
+ xmlns:a="http://schemas.datacontract.org/2004/07/System.Collections.Generic"
144
+ xmlns:i="http://www.w3.org/2001/XMLSchema-instance"/><PercentComplete>1</PercentComplete><RequestStatus>InProgress</RequestStatus><ResultFileUrl
145
+ i:nil="true" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"/></GetBulkDownloadStatusResponse></s:Body></s:Envelope>
146
+ http_version:
147
+ recorded_at: Thu, 22 Jun 2017 12:18:59 GMT
148
+ - request:
149
+ method: post
150
+ uri: https://bulk.api.bingads.microsoft.com/Api/Advertiser/CampaignManagement/V11/BulkService.svc
151
+ body:
152
+ encoding: UTF-8
153
+ string: <?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema"
154
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tns="https://bingads.microsoft.com/CampaignManagement/v11"
155
+ xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Header><tns:Action>GetBulkDownloadStatus</tns:Action><tns:AuthenticationToken>bing-ads-oauth-authentication-token</tns:AuthenticationToken><tns:DeveloperToken>bing-ads-developer-token</tns:DeveloperToken><tns:CustomerAccountId>bing-ads-account-id</tns:CustomerAccountId></env:Header><env:Body><tns:GetBulkDownloadStatusRequest><tns:RequestId>1099516605693</tns:RequestId></tns:GetBulkDownloadStatusRequest></env:Body></env:Envelope>
156
+ headers:
157
+ Soapaction:
158
+ - '"GetBulkDownloadStatus"'
159
+ Content-Type:
160
+ - text/xml;charset=UTF-8
161
+ Content-Length:
162
+ - '1668'
163
+ Accept-Encoding:
164
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
165
+ Accept:
166
+ - "*/*"
167
+ User-Agent:
168
+ - Ruby
169
+ response:
170
+ status:
171
+ code: 200
172
+ message: OK
173
+ headers:
174
+ Cache-Control:
175
+ - private
176
+ Content-Type:
177
+ - text/xml; charset=utf-8
178
+ Vary:
179
+ - Accept-Encoding
180
+ Server:
181
+ - Microsoft-IIS/8.5
182
+ X-Aspnet-Version:
183
+ - 4.0.30319
184
+ X-Powered-By:
185
+ - ASP.NET
186
+ Date:
187
+ - Thu, 22 Jun 2017 12:21:00 GMT
188
+ Content-Length:
189
+ - '570'
190
+ body:
191
+ encoding: ASCII-8BIT
192
+ string: <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Header><h:TrackingId
193
+ xmlns:h="https://bingads.microsoft.com/CampaignManagement/v11">bing-ads-report-tracking-id</h:TrackingId></s:Header><s:Body><GetBulkDownloadStatusResponse
194
+ xmlns="https://bingads.microsoft.com/CampaignManagement/v11"><Errors i:nil="true"
195
+ xmlns:i="http://www.w3.org/2001/XMLSchema-instance"/><ForwardCompatibilityMap
196
+ xmlns:a="http://schemas.datacontract.org/2004/07/System.Collections.Generic"
197
+ xmlns:i="http://www.w3.org/2001/XMLSchema-instance"/><PercentComplete>100</PercentComplete><RequestStatus>Completed</RequestStatus><ResultFileUrl>https://bingadsappsstorageprod.blob.core.windows.net/bulkdownloadresultfiles/DownloadHierarchy-1099516605693-aaedfaea-a79f-4b45-b290-74e27d43567e.zip?sv=2015-12-11&amp;sr=b&amp;sig=%2FdAHo6SsiwofOyxrUs3J6dLg6AHf5figxtZYmNwB%2BIM%3D&amp;st=2017-06-22T12%3A16%3A00Z&amp;se=2017-06-22T12%3A41%3A00Z&amp;sp=rl</ResultFileUrl></GetBulkDownloadStatusResponse></s:Body></s:Envelope>
198
+ http_version:
199
+ recorded_at: Thu, 22 Jun 2017 12:21:00 GMT
200
+ - request:
201
+ method: get
202
+ uri: https://bingadsappsstorageprod.blob.core.windows.net/bulkdownloadresultfiles/DownloadHierarchy-1099516605693-aaedfaea-a79f-4b45-b290-74e27d43567e.zip?se=2017-06-22T12:41:00Z&sig=/dAHo6SsiwofOyxrUs3J6dLg6AHf5figxtZYmNwB%2BIM=&sp=rl&sr=b&st=2017-06-22T12:16:00Z&sv=2015-12-11
203
+ body:
204
+ encoding: US-ASCII
205
+ string: ''
206
+ headers:
207
+ Accept-Encoding:
208
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
209
+ Accept:
210
+ - "*/*"
211
+ User-Agent:
212
+ - Ruby
213
+ response:
214
+ status:
215
+ code: 200
216
+ message: OK
217
+ headers:
218
+ Content-Length:
219
+ - '1569'
220
+ Content-Type:
221
+ - application/zip
222
+ Content-Md5:
223
+ - 51GekuSV1kdQv5HXkkb+rQ==
224
+ Last-Modified:
225
+ - Thu, 22 Jun 2017 12:19:00 GMT
226
+ Accept-Ranges:
227
+ - bytes
228
+ Etag:
229
+ - '"0x8D4B968DD418BE6"'
230
+ Vary:
231
+ - Origin
232
+ Server:
233
+ - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
234
+ X-Ms-Request-Id:
235
+ - cf8663b8-0001-0106-5c52-eb8a02000000
236
+ X-Ms-Version:
237
+ - '2015-12-11'
238
+ X-Ms-Meta-Retentionlookupkey:
239
+ - MultiAccountDownloadProd
240
+ X-Ms-Meta-Trackingid:
241
+ - 1867232c-8eb6-439e-b197-1276cb140f9f
242
+ X-Ms-Meta-Requestid:
243
+ - 6d073aa2-7a27-451c-9606-a6298860514f
244
+ X-Ms-Meta-Sessionid:
245
+ - 6d073aa2-7a27-451c-9606-a6298860514f
246
+ X-Ms-Meta-Creatormachinename:
247
+ - EAP010040205023
248
+ X-Ms-Lease-Status:
249
+ - unlocked
250
+ X-Ms-Lease-State:
251
+ - available
252
+ X-Ms-Blob-Type:
253
+ - BlockBlob
254
+ Content-Disposition:
255
+ - attachment;filename=DownloadHierarchy-1099516605693-aaedfaea-a79f-4b45-b290-74e27d43567e.zip
256
+ X-Ms-Server-Encrypted:
257
+ - 'false'
258
+ Date:
259
+ - Thu, 22 Jun 2017 12:21:01 GMT
260
+ body:
261
+ encoding: ASCII-8BIT
262
+ string: !binary |-
263
+ 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
297
+ AAAA
298
+ http_version:
299
+ recorded_at: Thu, 22 Jun 2017 12:21:01 GMT
300
+ recorded_with: VCR 3.0.3