soapy_bing 0.3.1 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
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
@@ -0,0 +1,154 @@
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
+ - Mon, 05 Jun 2017 14:58:59 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: Mon, 05 Jun 2017 14:59:00 GMT
46
+ - request:
47
+ method: post
48
+ uri: https://campaign.api.bingads.microsoft.com/Api/Advertiser/CampaignManagement/V11/CampaignManagementService.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>GetGeoLocationsFileUrl</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:GetGeoLocationsFileUrlRequest><tns:Version>1.0</tns:Version><tns:LanguageLocale>en</tns:LanguageLocale></tns:GetGeoLocationsFileUrlRequest></env:Body></env:Envelope>
54
+ headers:
55
+ Soapaction:
56
+ - '"GetGeoLocationsFileUrl"'
57
+ Content-Type:
58
+ - text/xml;charset=UTF-8
59
+ Content-Length:
60
+ - '1700'
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
+ - Mon, 05 Jun 2017 14:59:01 GMT
86
+ Content-Length:
87
+ - '431'
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><GetGeoLocationsFileUrlResponse
92
+ xmlns="https://bingads.microsoft.com/CampaignManagement/v11"><FileUrl>https://bingadsappsstorageprod.blob.core.windows.net/geolocationscsv/1.0/en/GeoLocations.csv?sv=2015-12-11&amp;sr=b&amp;sig=wrLaqR8eT8cKeJntsDD0hJ1hnm1KrkAid1c9VzfJfnw%3D&amp;st=2017-06-05T14%3A54%3A01Z&amp;se=2017-06-05T15%3A14%3A01Z&amp;sp=rl</FileUrl><FileUrlExpiryTimeUtc>2017-06-05T15:14:01Z</FileUrlExpiryTimeUtc><LastModifiedTimeUtc>2016-12-23T00:14:46Z</LastModifiedTimeUtc></GetGeoLocationsFileUrlResponse></s:Body></s:Envelope>
93
+ http_version:
94
+ recorded_at: Mon, 05 Jun 2017 14:59:01 GMT
95
+ - request:
96
+ method: get
97
+ uri: https://bingadsappsstorageprod.blob.core.windows.net/geolocationscsv/1.0/en/GeoLocations.csv?se=2017-06-05T15:14:01Z&sig=wrLaqR8eT8cKeJntsDD0hJ1hnm1KrkAid1c9VzfJfnw=&sp=rl&sr=b&st=2017-06-05T14:54:01Z&sv=2015-12-11
98
+ body:
99
+ encoding: US-ASCII
100
+ string: ''
101
+ headers:
102
+ Accept-Encoding:
103
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
104
+ Accept:
105
+ - "*/*"
106
+ User-Agent:
107
+ - Ruby
108
+ response:
109
+ status:
110
+ code: 200
111
+ message: OK
112
+ headers:
113
+ Content-Length:
114
+ - '5905806'
115
+ Content-Type:
116
+ - text/csv
117
+ Content-Md5:
118
+ - xcU2iJHBPPuqyaLL/bQi8A==
119
+ Last-Modified:
120
+ - Fri, 23 Dec 2016 00:14:46 GMT
121
+ Accept-Ranges:
122
+ - bytes
123
+ Etag:
124
+ - '"0x8D42AC8B3E4F3BA"'
125
+ Vary:
126
+ - Origin
127
+ Server:
128
+ - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
129
+ X-Ms-Request-Id:
130
+ - fe5eb4a5-0001-0058-510c-de3f54000000
131
+ X-Ms-Version:
132
+ - '2015-12-11'
133
+ X-Ms-Lease-Status:
134
+ - unlocked
135
+ X-Ms-Lease-State:
136
+ - available
137
+ X-Ms-Blob-Type:
138
+ - BlockBlob
139
+ X-Ms-Server-Encrypted:
140
+ - 'false'
141
+ Date:
142
+ - Mon, 05 Jun 2017 14:59:01 GMT
143
+ body:
144
+ encoding: ASCII-8BIT
145
+ string: |
146
+ ID,Code,Display Name,Descriptor,Target Type,Replaces,Status,AdWords Location ID
147
+ 1,AL,Albania,country/region,Country,,Active,2008
148
+ 2,AQ,Antarctica,country/region,Country,,Active,2010
149
+ 3,DZ,Algeria,country/region,Country,,Active,2012
150
+ 4,AS,American Samoa,country/region,Country,,Active,2016
151
+ 5,AD,Andorra,country/region,Country,,Active,2020
152
+ http_version:
153
+ recorded_at: Mon, 05 Jun 2017 14:59:20 GMT
154
+ recorded_with: VCR 3.0.3
@@ -6,7 +6,13 @@ http_interactions:
6
6
  body:
7
7
  encoding: UTF-8
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: {}
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
10
16
  response:
11
17
  status:
12
18
  code: 200
@@ -17,152 +23,117 @@ http_interactions:
17
23
  Pragma:
18
24
  - no-cache
19
25
  Content-Length:
20
- - '1317'
26
+ - '1509'
21
27
  Content-Type:
22
28
  - application/json
23
29
  Server:
24
30
  - Microsoft-IIS/8.5
25
31
  X-Content-Type-Options:
26
32
  - nosniff
33
+ Strict-Transport-Security:
34
+ - max-age=31536000
35
+ X-Xss-Protection:
36
+ - 1; mode=block
27
37
  Date:
28
- - Fri, 13 Nov 2015 14:23:43 GMT
38
+ - Wed, 07 Jun 2017 22:19:37 GMT
29
39
  Connection:
30
40
  - close
31
41
  body:
32
42
  encoding: UTF-8
33
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"}'
34
44
  http_version:
35
- recorded_at: Fri, 13 Nov 2015 14:23:44 GMT
45
+ recorded_at: Wed, 07 Jun 2017 22:19:38 GMT
36
46
  - request:
37
47
  method: post
38
- uri: https://reporting.api.bingads.microsoft.com/Api/Advertiser/Reporting/V9/ReportingService.svc
48
+ uri: https://reporting.api.bingads.microsoft.com/Api/Advertiser/Reporting/V11/ReportingService.svc
39
49
  body:
40
50
  encoding: UTF-8
41
- string: |
42
- <?xml version="1.0" encoding="UTF-8"?>
43
- <env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema"
44
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
45
- xmlns:tns="https://bingads.microsoft.com/Reporting/v9"
46
- xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
47
- xmlns:arr="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
48
- <env:Header>
49
- <tns:CustomerAccountId>bing-ads-account-id</tns:CustomerAccountId>
50
- <tns:CustomerId>bing-ads-customer-id</tns:CustomerId>
51
- <tns:DeveloperToken>bing-ads-developer-token</tns:DeveloperToken>
52
- <tns:AuthenticationToken>bing-ads-oauth-authentication-token</tns:AuthenticationToken>
53
- </env:Header>
54
- <env:Body>
55
- <tns:SubmitGenerateReportRequest>
56
- <tns:ReportRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" i:type="tns:CampaignPerformanceReportRequest">
57
- <tns:Format>Csv</tns:Format>
58
- <tns:Language>English</tns:Language>
59
- <tns:ReportName>MyReport</tns:ReportName>
60
- <tns:ReturnOnlyCompleteData>false</tns:ReturnOnlyCompleteData>
61
- <tns:Aggregation>HourOfDay</tns:Aggregation>
62
- <tns:Columns>
63
- <tns:CampaignPerformanceReportColumn>TimePeriod</tns:CampaignPerformanceReportColumn>
64
- <tns:CampaignPerformanceReportColumn>Impressions</tns:CampaignPerformanceReportColumn>
65
- <tns:CampaignPerformanceReportColumn>Clicks</tns:CampaignPerformanceReportColumn>
66
- <tns:CampaignPerformanceReportColumn>Spend</tns:CampaignPerformanceReportColumn>
67
- </tns:Columns>
68
- <tns:Scope>
69
- <tns:AccountIds>
70
- <arr:long>bing-ads-account-id</arr:long>
71
- </tns:AccountIds>
72
- </tns:Scope>
73
- <tns:Time>
74
- <tns:CustomDateRangeEnd>
75
- <tns:Day>14</tns:Day>
76
- <tns:Month>10</tns:Month>
77
- <tns:Year>2015</tns:Year>
78
- </tns:CustomDateRangeEnd>
79
- <tns:CustomDateRangeStart>
80
- <tns:Day>14</tns:Day>
81
- <tns:Month>10</tns:Month>
82
- <tns:Year>2015</tns:Year>
83
- </tns:CustomDateRangeStart>
84
- </tns:Time>
85
- </tns:ReportRequest>
86
- </tns:SubmitGenerateReportRequest>
87
- </env:Body>
88
- </env: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/Reporting/v11"
53
+ xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Header><tns:Action>SubmitGenerateReport</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:SubmitGenerateReportRequest><tns:ReportRequest
54
+ xsi:type="tns:CampaignPerformanceReportRequest"><tns:Format>Csv</tns:Format><tns:Language>English</tns:Language><tns:ReportName>MyReport</tns:ReportName><tns:ReturnOnlyCompletedData>false</tns:ReturnOnlyCompletedData><tns:Aggregation>Hourly</tns:Aggregation><tns:Columns><tns:CampaignPerformanceReportColumn>TimePeriod</tns:CampaignPerformanceReportColumn><tns:CampaignPerformanceReportColumn>Impressions</tns:CampaignPerformanceReportColumn><tns:CampaignPerformanceReportColumn>Clicks</tns:CampaignPerformanceReportColumn><tns:CampaignPerformanceReportColumn>Spend</tns:CampaignPerformanceReportColumn></tns:Columns><tns:Scope><tns:AccountIds
55
+ xmlns:a1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"><a1:long>bing-ads-account-id</a1:long></tns:AccountIds></tns:Scope><tns:Time><tns:CustomDateRangeEnd><tns:Day>14</tns:Day><tns:Month>10</tns:Month><tns:Year>2016</tns:Year></tns:CustomDateRangeEnd><tns:CustomDateRangeStart><tns:Day>14</tns:Day><tns:Month>10</tns:Month><tns:Year>2016</tns:Year></tns:CustomDateRangeStart></tns:Time></tns:ReportRequest></tns:SubmitGenerateReportRequest></env:Body></env:Envelope>
89
56
  headers:
57
+ Soapaction:
58
+ - '"SubmitGenerateReport"'
90
59
  Content-Type:
91
60
  - text/xml;charset=UTF-8
92
- Soapaction:
93
- - SubmitGenerateReport
61
+ Content-Length:
62
+ - '2684'
63
+ Accept-Encoding:
64
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
65
+ Accept:
66
+ - "*/*"
67
+ User-Agent:
68
+ - Ruby
94
69
  response:
95
70
  status:
96
71
  code: 200
97
72
  message: OK
98
73
  headers:
99
- Content-Length:
100
- - '396'
101
74
  Content-Type:
102
75
  - text/xml; charset=utf-8
76
+ Vary:
77
+ - Accept-Encoding
103
78
  Server:
104
- - Microsoft-IIS/8.0
79
+ - Microsoft-IIS/8.5
105
80
  X-Powered-By:
106
81
  - ASP.NET
107
82
  Date:
108
- - Fri, 13 Nov 2015 14:23:44 GMT
83
+ - Wed, 07 Jun 2017 22:19:38 GMT
84
+ Content-Length:
85
+ - '346'
109
86
  body:
110
- encoding: UTF-8
87
+ encoding: ASCII-8BIT
111
88
  string: <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Header><h:TrackingId
112
- xmlns:h="https://bingads.microsoft.com/Reporting/v9">bing-ads-report-tracking-id</h:TrackingId></s:Header><s:Body><SubmitGenerateReportResponse
113
- xmlns="https://bingads.microsoft.com/Reporting/v9"><ReportRequestId>bing-ads-report-request-id</ReportRequestId></SubmitGenerateReportResponse></s:Body></s:Envelope>
89
+ xmlns:h="https://bingads.microsoft.com/Reporting/v11">bing-ads-report-tracking-id</h:TrackingId></s:Header><s:Body><SubmitGenerateReportResponse
90
+ xmlns="https://bingads.microsoft.com/Reporting/v11"><ReportRequestId>bing-ads-report-request-id</ReportRequestId></SubmitGenerateReportResponse></s:Body></s:Envelope>
114
91
  http_version:
115
- recorded_at: Fri, 13 Nov 2015 14:23:45 GMT
92
+ recorded_at: Wed, 07 Jun 2017 22:19:39 GMT
116
93
  - request:
117
94
  method: post
118
- uri: https://reporting.api.bingads.microsoft.com/Api/Advertiser/Reporting/V9/ReportingService.svc
95
+ uri: https://reporting.api.bingads.microsoft.com/Api/Advertiser/Reporting/V11/ReportingService.svc
119
96
  body:
120
97
  encoding: UTF-8
121
- string: |
122
- <?xml version="1.0" encoding="UTF-8"?>
123
- <env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema"
124
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
125
- xmlns:tns="https://bingads.microsoft.com/Reporting/v9"
126
- xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
127
- xmlns:arr="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
128
- <env:Header>
129
- <tns:CustomerAccountId>bing-ads-account-id</tns:CustomerAccountId>
130
- <tns:CustomerId>bing-ads-customer-id</tns:CustomerId>
131
- <tns:DeveloperToken>bing-ads-developer-token</tns:DeveloperToken>
132
- <tns:AuthenticationToken>bing-ads-oauth-authentication-token</tns:AuthenticationToken>
133
- </env:Header>
134
- <env:Body>
135
- <tns:PollGenerateReportRequest>
136
- <tns:ReportRequestId xsi:nil="false">bing-ads-report-request-id</tns:ReportRequestId>
137
- </tns:PollGenerateReportRequest>
138
- </env:Body>
139
- </env:Envelope>
98
+ string: <?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema"
99
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tns="https://bingads.microsoft.com/Reporting/v11"
100
+ xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Header><tns:Action>PollGenerateReport</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:PollGenerateReportRequest><tns:ReportRequestId>bing-ads-report-request-id</tns:ReportRequestId></tns:PollGenerateReportRequest></env:Body></env:Envelope>
140
101
  headers:
102
+ Soapaction:
103
+ - '"PollGenerateReport"'
141
104
  Content-Type:
142
105
  - text/xml;charset=UTF-8
143
- Soapaction:
144
- - PollGenerateReport
106
+ Content-Length:
107
+ - '1666'
108
+ Accept-Encoding:
109
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
110
+ Accept:
111
+ - "*/*"
112
+ User-Agent:
113
+ - Ruby
145
114
  response:
146
115
  status:
147
116
  code: 200
148
117
  message: OK
149
118
  headers:
150
- Content-Length:
151
- - '493'
152
119
  Content-Type:
153
120
  - text/xml; charset=utf-8
121
+ Vary:
122
+ - Accept-Encoding
154
123
  Server:
155
- - Microsoft-IIS/8.0
124
+ - Microsoft-IIS/8.5
156
125
  X-Powered-By:
157
126
  - ASP.NET
158
127
  Date:
159
- - Fri, 13 Nov 2015 14:23:45 GMT
128
+ - Wed, 07 Jun 2017 22:19:41 GMT
129
+ Content-Length:
130
+ - '408'
160
131
  body:
161
- encoding: UTF-8
132
+ encoding: ASCII-8BIT
162
133
  string: <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Header><h:TrackingId
163
- xmlns:h="https://bingads.microsoft.com/Reporting/v9">bing-ads-report-tracking-id</h:TrackingId></s:Header><s:Body><PollGenerateReportResponse
164
- xmlns="https://bingads.microsoft.com/Reporting/v9"><ReportRequestStatus xmlns:i="http://www.w3.org/2001/XMLSchema-instance"><ReportDownloadUrl
134
+ xmlns:h="https://bingads.microsoft.com/Reporting/v11">bing-ads-report-tracking-id</h:TrackingId></s:Header><s:Body><PollGenerateReportResponse
135
+ xmlns="https://bingads.microsoft.com/Reporting/v11"><ReportRequestStatus xmlns:i="http://www.w3.org/2001/XMLSchema-instance"><ReportDownloadUrl
165
136
  i:nil="true"/><Status>Pending</Status></ReportRequestStatus></PollGenerateReportResponse></s:Body></s:Envelope>
166
137
  http_version:
167
- recorded_at: Fri, 13 Nov 2015 14:23:46 GMT
168
- recorded_with: VCR 3.0.0
138
+ recorded_at: Wed, 07 Jun 2017 22:19:41 GMT
139
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,511 @@
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
+ - Wed, 07 Jun 2017 22:07:31 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: Wed, 07 Jun 2017 22:07:31 GMT
46
+ - request:
47
+ method: post
48
+ uri: https://reporting.api.bingads.microsoft.com/Api/Advertiser/Reporting/V11/ReportingService.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/Reporting/v11"
53
+ xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Header><tns:Action>SubmitGenerateReport</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:SubmitGenerateReportRequest><tns:ReportRequest
54
+ xsi:type="tns:CampaignPerformanceReportRequest"><tns:Format>Csv</tns:Format><tns:Language>English</tns:Language><tns:ReportName>MyReport</tns:ReportName><tns:ReturnOnlyCompletedData>false</tns:ReturnOnlyCompletedData><tns:Aggregation>Hourly</tns:Aggregation><tns:Columns><tns:CampaignPerformanceReportColumn>TimePeriod</tns:CampaignPerformanceReportColumn><tns:CampaignPerformanceReportColumn>Impressions</tns:CampaignPerformanceReportColumn><tns:CampaignPerformanceReportColumn>Clicks</tns:CampaignPerformanceReportColumn><tns:CampaignPerformanceReportColumn>Spend</tns:CampaignPerformanceReportColumn></tns:Columns><tns:Scope><tns:AccountIds
55
+ xmlns:a1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"><a1:long>bing-ads-account-id</a1:long></tns:AccountIds></tns:Scope><tns:Time><tns:CustomDateRangeEnd><tns:Day>14</tns:Day><tns:Month>10</tns:Month><tns:Year>2016</tns:Year></tns:CustomDateRangeEnd><tns:CustomDateRangeStart><tns:Day>14</tns:Day><tns:Month>10</tns:Month><tns:Year>2016</tns:Year></tns:CustomDateRangeStart></tns:Time></tns:ReportRequest></tns:SubmitGenerateReportRequest></env:Body></env:Envelope>
56
+ headers:
57
+ Soapaction:
58
+ - '"SubmitGenerateReport"'
59
+ Content-Type:
60
+ - text/xml;charset=UTF-8
61
+ Content-Length:
62
+ - '2684'
63
+ Accept-Encoding:
64
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
65
+ Accept:
66
+ - "*/*"
67
+ User-Agent:
68
+ - Ruby
69
+ response:
70
+ status:
71
+ code: 200
72
+ message: OK
73
+ headers:
74
+ Content-Type:
75
+ - text/xml; charset=utf-8
76
+ Vary:
77
+ - Accept-Encoding
78
+ Server:
79
+ - Microsoft-IIS/8.5
80
+ X-Powered-By:
81
+ - ASP.NET
82
+ Date:
83
+ - Wed, 07 Jun 2017 22:07:32 GMT
84
+ Content-Length:
85
+ - '345'
86
+ body:
87
+ encoding: ASCII-8BIT
88
+ string: <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Header><h:TrackingId
89
+ xmlns:h="https://bingads.microsoft.com/Reporting/v11">bing-ads-report-tracking-id</h:TrackingId></s:Header><s:Body><SubmitGenerateReportResponse
90
+ xmlns="https://bingads.microsoft.com/Reporting/v11"><ReportRequestId>bing-ads-report-request-id</ReportRequestId></SubmitGenerateReportResponse></s:Body></s:Envelope>
91
+ http_version:
92
+ recorded_at: Wed, 07 Jun 2017 22:07:33 GMT
93
+ - request:
94
+ method: post
95
+ uri: https://reporting.api.bingads.microsoft.com/Api/Advertiser/Reporting/V11/ReportingService.svc
96
+ body:
97
+ encoding: UTF-8
98
+ string: <?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema"
99
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tns="https://bingads.microsoft.com/Reporting/v11"
100
+ xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Header><tns:Action>PollGenerateReport</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:PollGenerateReportRequest><tns:ReportRequestId>bing-ads-report-request-id</tns:ReportRequestId></tns:PollGenerateReportRequest></env:Body></env:Envelope>
101
+ headers:
102
+ Soapaction:
103
+ - '"PollGenerateReport"'
104
+ Content-Type:
105
+ - text/xml;charset=UTF-8
106
+ Content-Length:
107
+ - '1666'
108
+ Accept-Encoding:
109
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
110
+ Accept:
111
+ - "*/*"
112
+ User-Agent:
113
+ - Ruby
114
+ response:
115
+ status:
116
+ code: 200
117
+ message: OK
118
+ headers:
119
+ Content-Type:
120
+ - text/xml; charset=utf-8
121
+ Vary:
122
+ - Accept-Encoding
123
+ Server:
124
+ - Microsoft-IIS/8.5
125
+ X-Powered-By:
126
+ - ASP.NET
127
+ Date:
128
+ - Wed, 07 Jun 2017 22:07:34 GMT
129
+ Content-Length:
130
+ - '407'
131
+ body:
132
+ encoding: ASCII-8BIT
133
+ string: <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Header><h:TrackingId
134
+ xmlns:h="https://bingads.microsoft.com/Reporting/v11">bing-ads-report-tracking-id</h:TrackingId></s:Header><s:Body><PollGenerateReportResponse
135
+ xmlns="https://bingads.microsoft.com/Reporting/v11"><ReportRequestStatus xmlns:i="http://www.w3.org/2001/XMLSchema-instance"><ReportDownloadUrl
136
+ i:nil="true"/><Status>Pending</Status></ReportRequestStatus></PollGenerateReportResponse></s:Body></s:Envelope>
137
+ http_version:
138
+ recorded_at: Wed, 07 Jun 2017 22:07:34 GMT
139
+ - request:
140
+ method: post
141
+ uri: https://reporting.api.bingads.microsoft.com/Api/Advertiser/Reporting/V11/ReportingService.svc
142
+ body:
143
+ encoding: UTF-8
144
+ string: <?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema"
145
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tns="https://bingads.microsoft.com/Reporting/v11"
146
+ xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Header><tns:Action>SubmitGenerateReport</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:SubmitGenerateReportRequest><tns:ReportRequest
147
+ xsi:type="tns:CampaignPerformanceReportRequest"><tns:Format>Csv</tns:Format><tns:Language>English</tns:Language><tns:ReportName>MyReport</tns:ReportName><tns:ReturnOnlyCompletedData>false</tns:ReturnOnlyCompletedData><tns:Aggregation>Hourly</tns:Aggregation><tns:Columns><tns:CampaignPerformanceReportColumn>TimePeriod</tns:CampaignPerformanceReportColumn><tns:CampaignPerformanceReportColumn>Impressions</tns:CampaignPerformanceReportColumn><tns:CampaignPerformanceReportColumn>Clicks</tns:CampaignPerformanceReportColumn><tns:CampaignPerformanceReportColumn>Spend</tns:CampaignPerformanceReportColumn></tns:Columns><tns:Scope><tns:AccountIds
148
+ xmlns:a1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"><a1:long>bing-ads-account-id</a1:long></tns:AccountIds></tns:Scope><tns:Time><tns:CustomDateRangeEnd><tns:Day>14</tns:Day><tns:Month>10</tns:Month><tns:Year>2016</tns:Year></tns:CustomDateRangeEnd><tns:CustomDateRangeStart><tns:Day>14</tns:Day><tns:Month>10</tns:Month><tns:Year>2016</tns:Year></tns:CustomDateRangeStart></tns:Time></tns:ReportRequest></tns:SubmitGenerateReportRequest></env:Body></env:Envelope>
149
+ headers:
150
+ Soapaction:
151
+ - '"SubmitGenerateReport"'
152
+ Content-Type:
153
+ - text/xml;charset=UTF-8
154
+ Content-Length:
155
+ - '2684'
156
+ Accept-Encoding:
157
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
158
+ Accept:
159
+ - "*/*"
160
+ User-Agent:
161
+ - Ruby
162
+ response:
163
+ status:
164
+ code: 200
165
+ message: OK
166
+ headers:
167
+ Content-Type:
168
+ - text/xml; charset=utf-8
169
+ Vary:
170
+ - Accept-Encoding
171
+ Server:
172
+ - Microsoft-IIS/8.5
173
+ X-Powered-By:
174
+ - ASP.NET
175
+ Date:
176
+ - Wed, 07 Jun 2017 22:07:36 GMT
177
+ Content-Length:
178
+ - '346'
179
+ body:
180
+ encoding: ASCII-8BIT
181
+ string: <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Header><h:TrackingId
182
+ xmlns:h="https://bingads.microsoft.com/Reporting/v11">bing-ads-report-tracking-id</h:TrackingId></s:Header><s:Body><SubmitGenerateReportResponse
183
+ xmlns="https://bingads.microsoft.com/Reporting/v11"><ReportRequestId>bing-ads-report-request-id</ReportRequestId></SubmitGenerateReportResponse></s:Body></s:Envelope>
184
+ http_version:
185
+ recorded_at: Wed, 07 Jun 2017 22:07:37 GMT
186
+ - request:
187
+ method: post
188
+ uri: https://reporting.api.bingads.microsoft.com/Api/Advertiser/Reporting/V11/ReportingService.svc
189
+ body:
190
+ encoding: UTF-8
191
+ string: <?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema"
192
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tns="https://bingads.microsoft.com/Reporting/v11"
193
+ xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Header><tns:Action>PollGenerateReport</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:PollGenerateReportRequest><tns:ReportRequestId>bing-ads-report-request-id</tns:ReportRequestId></tns:PollGenerateReportRequest></env:Body></env:Envelope>
194
+ headers:
195
+ Soapaction:
196
+ - '"PollGenerateReport"'
197
+ Content-Type:
198
+ - text/xml;charset=UTF-8
199
+ Content-Length:
200
+ - '1666'
201
+ Accept-Encoding:
202
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
203
+ Accept:
204
+ - "*/*"
205
+ User-Agent:
206
+ - Ruby
207
+ response:
208
+ status:
209
+ code: 200
210
+ message: OK
211
+ headers:
212
+ Content-Type:
213
+ - text/xml; charset=utf-8
214
+ Vary:
215
+ - Accept-Encoding
216
+ Server:
217
+ - Microsoft-IIS/8.5
218
+ X-Powered-By:
219
+ - ASP.NET
220
+ Date:
221
+ - Wed, 07 Jun 2017 22:07:37 GMT
222
+ Content-Length:
223
+ - '407'
224
+ body:
225
+ encoding: ASCII-8BIT
226
+ string: <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Header><h:TrackingId
227
+ xmlns:h="https://bingads.microsoft.com/Reporting/v11">bing-ads-report-tracking-id</h:TrackingId></s:Header><s:Body><PollGenerateReportResponse
228
+ xmlns="https://bingads.microsoft.com/Reporting/v11"><ReportRequestStatus xmlns:i="http://www.w3.org/2001/XMLSchema-instance"><ReportDownloadUrl
229
+ i:nil="true"/><Status>Pending</Status></ReportRequestStatus></PollGenerateReportResponse></s:Body></s:Envelope>
230
+ http_version:
231
+ recorded_at: Wed, 07 Jun 2017 22:07:38 GMT
232
+ - request:
233
+ method: post
234
+ uri: https://reporting.api.bingads.microsoft.com/Api/Advertiser/Reporting/V11/ReportingService.svc
235
+ body:
236
+ encoding: UTF-8
237
+ string: <?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema"
238
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tns="https://bingads.microsoft.com/Reporting/v11"
239
+ xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Header><tns:Action>SubmitGenerateReport</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:SubmitGenerateReportRequest><tns:ReportRequest
240
+ xsi:type="tns:CampaignPerformanceReportRequest"><tns:Format>Csv</tns:Format><tns:Language>English</tns:Language><tns:ReportName>MyReport</tns:ReportName><tns:ReturnOnlyCompletedData>false</tns:ReturnOnlyCompletedData><tns:Aggregation>Hourly</tns:Aggregation><tns:Columns><tns:CampaignPerformanceReportColumn>TimePeriod</tns:CampaignPerformanceReportColumn><tns:CampaignPerformanceReportColumn>Impressions</tns:CampaignPerformanceReportColumn><tns:CampaignPerformanceReportColumn>Clicks</tns:CampaignPerformanceReportColumn><tns:CampaignPerformanceReportColumn>Spend</tns:CampaignPerformanceReportColumn></tns:Columns><tns:Scope><tns:AccountIds
241
+ xmlns:a1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"><a1:long>bing-ads-account-id</a1:long></tns:AccountIds></tns:Scope><tns:Time><tns:CustomDateRangeEnd><tns:Day>14</tns:Day><tns:Month>10</tns:Month><tns:Year>2016</tns:Year></tns:CustomDateRangeEnd><tns:CustomDateRangeStart><tns:Day>14</tns:Day><tns:Month>10</tns:Month><tns:Year>2016</tns:Year></tns:CustomDateRangeStart></tns:Time></tns:ReportRequest></tns:SubmitGenerateReportRequest></env:Body></env:Envelope>
242
+ headers:
243
+ Soapaction:
244
+ - '"SubmitGenerateReport"'
245
+ Content-Type:
246
+ - text/xml;charset=UTF-8
247
+ Content-Length:
248
+ - '2684'
249
+ Accept-Encoding:
250
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
251
+ Accept:
252
+ - "*/*"
253
+ User-Agent:
254
+ - Ruby
255
+ response:
256
+ status:
257
+ code: 200
258
+ message: OK
259
+ headers:
260
+ Content-Type:
261
+ - text/xml; charset=utf-8
262
+ Vary:
263
+ - Accept-Encoding
264
+ Server:
265
+ - Microsoft-IIS/8.5
266
+ X-Powered-By:
267
+ - ASP.NET
268
+ Date:
269
+ - Wed, 07 Jun 2017 22:07:41 GMT
270
+ Content-Length:
271
+ - '344'
272
+ body:
273
+ encoding: ASCII-8BIT
274
+ string: <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Header><h:TrackingId
275
+ xmlns:h="https://bingads.microsoft.com/Reporting/v11">bing-ads-report-tracking-id</h:TrackingId></s:Header><s:Body><SubmitGenerateReportResponse
276
+ xmlns="https://bingads.microsoft.com/Reporting/v11"><ReportRequestId>bing-ads-report-request-id</ReportRequestId></SubmitGenerateReportResponse></s:Body></s:Envelope>
277
+ http_version:
278
+ recorded_at: Wed, 07 Jun 2017 22:07:41 GMT
279
+ - request:
280
+ method: post
281
+ uri: https://reporting.api.bingads.microsoft.com/Api/Advertiser/Reporting/V11/ReportingService.svc
282
+ body:
283
+ encoding: UTF-8
284
+ string: <?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema"
285
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tns="https://bingads.microsoft.com/Reporting/v11"
286
+ xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Header><tns:Action>PollGenerateReport</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:PollGenerateReportRequest><tns:ReportRequestId>bing-ads-report-request-id</tns:ReportRequestId></tns:PollGenerateReportRequest></env:Body></env:Envelope>
287
+ headers:
288
+ Soapaction:
289
+ - '"PollGenerateReport"'
290
+ Content-Type:
291
+ - text/xml;charset=UTF-8
292
+ Content-Length:
293
+ - '1666'
294
+ Accept-Encoding:
295
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
296
+ Accept:
297
+ - "*/*"
298
+ User-Agent:
299
+ - Ruby
300
+ response:
301
+ status:
302
+ code: 200
303
+ message: OK
304
+ headers:
305
+ Content-Type:
306
+ - text/xml; charset=utf-8
307
+ Vary:
308
+ - Accept-Encoding
309
+ Server:
310
+ - Microsoft-IIS/8.5
311
+ X-Powered-By:
312
+ - ASP.NET
313
+ Date:
314
+ - Wed, 07 Jun 2017 22:07:42 GMT
315
+ Content-Length:
316
+ - '407'
317
+ body:
318
+ encoding: ASCII-8BIT
319
+ string: <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Header><h:TrackingId
320
+ xmlns:h="https://bingads.microsoft.com/Reporting/v11">bing-ads-report-tracking-id</h:TrackingId></s:Header><s:Body><PollGenerateReportResponse
321
+ xmlns="https://bingads.microsoft.com/Reporting/v11"><ReportRequestStatus xmlns:i="http://www.w3.org/2001/XMLSchema-instance"><ReportDownloadUrl
322
+ i:nil="true"/><Status>Pending</Status></ReportRequestStatus></PollGenerateReportResponse></s:Body></s:Envelope>
323
+ http_version:
324
+ recorded_at: Wed, 07 Jun 2017 22:07:42 GMT
325
+ - request:
326
+ method: post
327
+ uri: https://reporting.api.bingads.microsoft.com/Api/Advertiser/Reporting/V11/ReportingService.svc
328
+ body:
329
+ encoding: UTF-8
330
+ string: <?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema"
331
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tns="https://bingads.microsoft.com/Reporting/v11"
332
+ xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Header><tns:Action>SubmitGenerateReport</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:SubmitGenerateReportRequest><tns:ReportRequest
333
+ xsi:type="tns:CampaignPerformanceReportRequest"><tns:Format>Csv</tns:Format><tns:Language>English</tns:Language><tns:ReportName>MyReport</tns:ReportName><tns:ReturnOnlyCompletedData>false</tns:ReturnOnlyCompletedData><tns:Aggregation>Hourly</tns:Aggregation><tns:Columns><tns:CampaignPerformanceReportColumn>TimePeriod</tns:CampaignPerformanceReportColumn><tns:CampaignPerformanceReportColumn>Impressions</tns:CampaignPerformanceReportColumn><tns:CampaignPerformanceReportColumn>Clicks</tns:CampaignPerformanceReportColumn><tns:CampaignPerformanceReportColumn>Spend</tns:CampaignPerformanceReportColumn></tns:Columns><tns:Scope><tns:AccountIds
334
+ xmlns:a1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"><a1:long>bing-ads-account-id</a1:long></tns:AccountIds></tns:Scope><tns:Time><tns:CustomDateRangeEnd><tns:Day>14</tns:Day><tns:Month>10</tns:Month><tns:Year>2016</tns:Year></tns:CustomDateRangeEnd><tns:CustomDateRangeStart><tns:Day>14</tns:Day><tns:Month>10</tns:Month><tns:Year>2016</tns:Year></tns:CustomDateRangeStart></tns:Time></tns:ReportRequest></tns:SubmitGenerateReportRequest></env:Body></env:Envelope>
335
+ headers:
336
+ Soapaction:
337
+ - '"SubmitGenerateReport"'
338
+ Content-Type:
339
+ - text/xml;charset=UTF-8
340
+ Content-Length:
341
+ - '2684'
342
+ Accept-Encoding:
343
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
344
+ Accept:
345
+ - "*/*"
346
+ User-Agent:
347
+ - Ruby
348
+ response:
349
+ status:
350
+ code: 200
351
+ message: OK
352
+ headers:
353
+ Content-Type:
354
+ - text/xml; charset=utf-8
355
+ Vary:
356
+ - Accept-Encoding
357
+ Server:
358
+ - Microsoft-IIS/8.5
359
+ X-Powered-By:
360
+ - ASP.NET
361
+ Date:
362
+ - Wed, 07 Jun 2017 22:07:47 GMT
363
+ Content-Length:
364
+ - '344'
365
+ body:
366
+ encoding: ASCII-8BIT
367
+ string: <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Header><h:TrackingId
368
+ xmlns:h="https://bingads.microsoft.com/Reporting/v11">bing-ads-report-tracking-id</h:TrackingId></s:Header><s:Body><SubmitGenerateReportResponse
369
+ xmlns="https://bingads.microsoft.com/Reporting/v11"><ReportRequestId>bing-ads-report-request-id</ReportRequestId></SubmitGenerateReportResponse></s:Body></s:Envelope>
370
+ http_version:
371
+ recorded_at: Wed, 07 Jun 2017 22:07:47 GMT
372
+ - request:
373
+ method: post
374
+ uri: https://reporting.api.bingads.microsoft.com/Api/Advertiser/Reporting/V11/ReportingService.svc
375
+ body:
376
+ encoding: UTF-8
377
+ string: <?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema"
378
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tns="https://bingads.microsoft.com/Reporting/v11"
379
+ xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Header><tns:Action>PollGenerateReport</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:PollGenerateReportRequest><tns:ReportRequestId>bing-ads-report-request-id</tns:ReportRequestId></tns:PollGenerateReportRequest></env:Body></env:Envelope>
380
+ headers:
381
+ Soapaction:
382
+ - '"PollGenerateReport"'
383
+ Content-Type:
384
+ - text/xml;charset=UTF-8
385
+ Content-Length:
386
+ - '1666'
387
+ Accept-Encoding:
388
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
389
+ Accept:
390
+ - "*/*"
391
+ User-Agent:
392
+ - Ruby
393
+ response:
394
+ status:
395
+ code: 200
396
+ message: OK
397
+ headers:
398
+ Content-Type:
399
+ - text/xml; charset=utf-8
400
+ Vary:
401
+ - Accept-Encoding
402
+ Server:
403
+ - Microsoft-IIS/8.5
404
+ X-Powered-By:
405
+ - ASP.NET
406
+ Date:
407
+ - Wed, 07 Jun 2017 22:07:47 GMT
408
+ Content-Length:
409
+ - '406'
410
+ body:
411
+ encoding: ASCII-8BIT
412
+ string: <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Header><h:TrackingId
413
+ xmlns:h="https://bingads.microsoft.com/Reporting/v11">bing-ads-report-tracking-id</h:TrackingId></s:Header><s:Body><PollGenerateReportResponse
414
+ xmlns="https://bingads.microsoft.com/Reporting/v11"><ReportRequestStatus xmlns:i="http://www.w3.org/2001/XMLSchema-instance"><ReportDownloadUrl
415
+ i:nil="true"/><Status>Pending</Status></ReportRequestStatus></PollGenerateReportResponse></s:Body></s:Envelope>
416
+ http_version:
417
+ recorded_at: Wed, 07 Jun 2017 22:07:49 GMT
418
+ - request:
419
+ method: post
420
+ uri: https://reporting.api.bingads.microsoft.com/Api/Advertiser/Reporting/V11/ReportingService.svc
421
+ body:
422
+ encoding: UTF-8
423
+ string: <?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema"
424
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tns="https://bingads.microsoft.com/Reporting/v11"
425
+ xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Header><tns:Action>SubmitGenerateReport</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:SubmitGenerateReportRequest><tns:ReportRequest
426
+ xsi:type="tns:CampaignPerformanceReportRequest"><tns:Format>Csv</tns:Format><tns:Language>English</tns:Language><tns:ReportName>MyReport</tns:ReportName><tns:ReturnOnlyCompletedData>false</tns:ReturnOnlyCompletedData><tns:Aggregation>Hourly</tns:Aggregation><tns:Columns><tns:CampaignPerformanceReportColumn>TimePeriod</tns:CampaignPerformanceReportColumn><tns:CampaignPerformanceReportColumn>Impressions</tns:CampaignPerformanceReportColumn><tns:CampaignPerformanceReportColumn>Clicks</tns:CampaignPerformanceReportColumn><tns:CampaignPerformanceReportColumn>Spend</tns:CampaignPerformanceReportColumn></tns:Columns><tns:Scope><tns:AccountIds
427
+ xmlns:a1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"><a1:long>bing-ads-account-id</a1:long></tns:AccountIds></tns:Scope><tns:Time><tns:CustomDateRangeEnd><tns:Day>14</tns:Day><tns:Month>10</tns:Month><tns:Year>2016</tns:Year></tns:CustomDateRangeEnd><tns:CustomDateRangeStart><tns:Day>14</tns:Day><tns:Month>10</tns:Month><tns:Year>2016</tns:Year></tns:CustomDateRangeStart></tns:Time></tns:ReportRequest></tns:SubmitGenerateReportRequest></env:Body></env:Envelope>
428
+ headers:
429
+ Soapaction:
430
+ - '"SubmitGenerateReport"'
431
+ Content-Type:
432
+ - text/xml;charset=UTF-8
433
+ Content-Length:
434
+ - '2684'
435
+ Accept-Encoding:
436
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
437
+ Accept:
438
+ - "*/*"
439
+ User-Agent:
440
+ - Ruby
441
+ response:
442
+ status:
443
+ code: 200
444
+ message: OK
445
+ headers:
446
+ Content-Type:
447
+ - text/xml; charset=utf-8
448
+ Vary:
449
+ - Accept-Encoding
450
+ Server:
451
+ - Microsoft-IIS/8.5
452
+ X-Powered-By:
453
+ - ASP.NET
454
+ Date:
455
+ - Wed, 07 Jun 2017 22:08:02 GMT
456
+ Content-Length:
457
+ - '348'
458
+ body:
459
+ encoding: ASCII-8BIT
460
+ string: <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Header><h:TrackingId
461
+ xmlns:h="https://bingads.microsoft.com/Reporting/v11">bing-ads-report-tracking-id</h:TrackingId></s:Header><s:Body><SubmitGenerateReportResponse
462
+ xmlns="https://bingads.microsoft.com/Reporting/v11"><ReportRequestId>bing-ads-report-request-id</ReportRequestId></SubmitGenerateReportResponse></s:Body></s:Envelope>
463
+ http_version:
464
+ recorded_at: Wed, 07 Jun 2017 22:08:03 GMT
465
+ - request:
466
+ method: post
467
+ uri: https://reporting.api.bingads.microsoft.com/Api/Advertiser/Reporting/V11/ReportingService.svc
468
+ body:
469
+ encoding: UTF-8
470
+ string: <?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema"
471
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tns="https://bingads.microsoft.com/Reporting/v11"
472
+ xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Header><tns:Action>PollGenerateReport</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:PollGenerateReportRequest><tns:ReportRequestId>bing-ads-report-request-id</tns:ReportRequestId></tns:PollGenerateReportRequest></env:Body></env:Envelope>
473
+ headers:
474
+ Soapaction:
475
+ - '"PollGenerateReport"'
476
+ Content-Type:
477
+ - text/xml;charset=UTF-8
478
+ Content-Length:
479
+ - '1666'
480
+ Accept-Encoding:
481
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
482
+ Accept:
483
+ - "*/*"
484
+ User-Agent:
485
+ - Ruby
486
+ response:
487
+ status:
488
+ code: 200
489
+ message: OK
490
+ headers:
491
+ Content-Type:
492
+ - text/xml; charset=utf-8
493
+ Vary:
494
+ - Accept-Encoding
495
+ Server:
496
+ - Microsoft-IIS/8.5
497
+ X-Powered-By:
498
+ - ASP.NET
499
+ Date:
500
+ - Wed, 07 Jun 2017 22:08:09 GMT
501
+ Content-Length:
502
+ - '408'
503
+ body:
504
+ encoding: ASCII-8BIT
505
+ string: <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Header><h:TrackingId
506
+ xmlns:h="https://bingads.microsoft.com/Reporting/v11">bing-ads-report-tracking-id</h:TrackingId></s:Header><s:Body><PollGenerateReportResponse
507
+ xmlns="https://bingads.microsoft.com/Reporting/v11"><ReportRequestStatus xmlns:i="http://www.w3.org/2001/XMLSchema-instance"><ReportDownloadUrl
508
+ i:nil="true"/><Status>Success</Status></ReportRequestStatus></PollGenerateReportResponse></s:Body></s:Envelope>
509
+ http_version:
510
+ recorded_at: Wed, 07 Jun 2017 22:08:09 GMT
511
+ recorded_with: VCR 3.0.3