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.
- checksums.yaml +4 -4
- data/.ruby-version +1 -1
- data/Gemfile +1 -0
- data/README.md +18 -18
- data/Rakefile +1 -0
- data/lib/soapy_bing.rb +5 -1
- data/lib/soapy_bing/account.rb +1 -0
- data/lib/soapy_bing/accounts.rb +13 -17
- data/lib/soapy_bing/ads.rb +18 -41
- data/lib/soapy_bing/ads/campaign_performance_report.rb +49 -0
- data/lib/soapy_bing/ads/campaigns.rb +106 -0
- data/lib/soapy_bing/ads/parsers/bulk_csv_parser.rb +34 -0
- data/lib/soapy_bing/ads/parsers/report_csv_parser.rb +45 -0
- data/lib/soapy_bing/ads/report.rb +93 -0
- data/lib/soapy_bing/campaign_management.rb +21 -0
- data/lib/soapy_bing/country_codes.rb +17 -0
- data/lib/soapy_bing/country_codes.yml +727 -0
- data/lib/soapy_bing/customer.rb +1 -0
- data/lib/soapy_bing/helpers.rb +1 -1
- data/lib/soapy_bing/helpers/zip_downloader.rb +1 -0
- data/lib/soapy_bing/oauth_credentials.rb +1 -0
- data/lib/soapy_bing/param_guard.rb +1 -0
- data/lib/soapy_bing/service.rb +69 -0
- data/lib/soapy_bing/service_operation.rb +62 -0
- data/lib/soapy_bing/version.rb +2 -1
- data/lib/soapy_bing/wsdl/ad_insight.wsdl +1 -0
- data/lib/soapy_bing/wsdl/bulk.wsdl +1 -0
- data/lib/soapy_bing/wsdl/campaign_management.wsdl +1 -0
- data/lib/soapy_bing/wsdl/customer_billing.wsdl +1 -0
- data/lib/soapy_bing/wsdl/customer_management.wsdl +1 -0
- data/lib/soapy_bing/wsdl/reporting.wsdl +1 -0
- data/lib/tasks/console.rake +1 -0
- data/lib/tasks/coverage.rake +1 -0
- data/lib/tasks/spec.rake +1 -0
- data/lib/tasks/upate_wsdl_files.rake +23 -0
- data/lib/tasks/update_country_codes.rake +24 -0
- data/soapy_bing.gemspec +2 -1
- data/spec/fixtures/ads/campaign_performance_report.csv +37 -0
- data/spec/fixtures/ads/campaign_performance_report.json +170 -0
- data/spec/fixtures/ads/campaigns_by_account_id.csv +7 -0
- data/spec/fixtures/{bulk/campaigns.json → ads/campaigns_by_account_id.json} +496 -240
- data/spec/fixtures/ads/campaigns_by_campaign_ids.csv +5 -0
- data/spec/fixtures/ads/campaigns_by_campaign_ids.json +910 -0
- data/spec/fixtures/vcr_cassettes/SoapyBing_Accounts/_list/returns_a_list_of_SoapyBing_Account_objects.yml +27 -27
- data/spec/fixtures/vcr_cassettes/SoapyBing_Ads/_campaigns/by_account_id/returns_parsed_rows.yml +301 -0
- data/spec/fixtures/vcr_cassettes/SoapyBing_Ads/_campaigns/by_campaign_ids/returns_parsed_rows.yml +300 -0
- data/spec/fixtures/vcr_cassettes/SoapyBing_CampaignManagement/_get_geo_locations/returns_a_list_of_geo_locations_hashes.yml +154 -0
- data/spec/fixtures/vcr_cassettes/campaign_performance_report/with_pending_status.yml +65 -94
- data/spec/fixtures/vcr_cassettes/campaign_performance_report/with_successful_empty_response.yml +511 -0
- data/spec/fixtures/vcr_cassettes/campaign_performance_report/with_successful_response.yml +384 -0
- data/spec/integration/soapy_bing/accounts_spec.rb +1 -0
- data/spec/integration/soapy_bing/ads_campaigns_spec.rb +85 -0
- data/spec/integration/soapy_bing/campaign_management_spec.rb +22 -0
- data/spec/integration/soapy_bing/oauth_credentials_spec.rb +1 -0
- data/spec/simplecov_setup.rb +1 -0
- data/spec/soapy_bing/account_spec.rb +6 -2
- data/spec/soapy_bing/accounts_spec.rb +47 -0
- data/spec/soapy_bing/ads/campaign_performance_report_spec.rb +79 -0
- data/spec/soapy_bing/ads/campaigns_spec.rb +99 -0
- data/spec/soapy_bing/ads/{bulk/parsers/csv_parser_spec.rb → parsers/bulk_csv_parser_spec.rb} +5 -4
- data/spec/soapy_bing/ads/{reports/parsers/csv_parser_spec.rb → parsers/report_csv_parser_spec.rb} +6 -4
- data/spec/soapy_bing/country_codes_spec.rb +39 -0
- data/spec/soapy_bing/helpers/zip_downloader_spec.rb +2 -0
- data/spec/soapy_bing/oauth_credentials_spec.rb +6 -2
- data/spec/soapy_bing/param_guard_spec.rb +2 -0
- data/spec/soapy_bing/service_spec.rb +56 -0
- data/spec/spec_helper.rb +1 -0
- data/spec/support/dotenv.rb +1 -0
- data/spec/support/vcr.rb +75 -6
- metadata +74 -118
- data/lib/soapy_bing/ads/bulk.rb +0 -3
- data/lib/soapy_bing/ads/bulk/campaigns.rb +0 -65
- data/lib/soapy_bing/ads/bulk/parsers.rb +0 -2
- data/lib/soapy_bing/ads/bulk/parsers/csv_parser.rb +0 -35
- data/lib/soapy_bing/ads/reports.rb +0 -4
- data/lib/soapy_bing/ads/reports/base.rb +0 -74
- data/lib/soapy_bing/ads/reports/campaign_performance_report.rb +0 -24
- data/lib/soapy_bing/ads/reports/parsers.rb +0 -2
- data/lib/soapy_bing/ads/reports/parsers/csv_parser.rb +0 -46
- data/lib/soapy_bing/helpers/class_name.rb +0 -10
- data/lib/soapy_bing/soap.rb +0 -4
- data/lib/soapy_bing/soap/request.rb +0 -10
- data/lib/soapy_bing/soap/request/base.rb +0 -38
- data/lib/soapy_bing/soap/request/download_campaigns_by_account_ids_request.rb +0 -17
- data/lib/soapy_bing/soap/request/get_accounts_info_request.rb +0 -17
- data/lib/soapy_bing/soap/request/get_ad_groups_by_campaign_id_request.rb +0 -17
- data/lib/soapy_bing/soap/request/get_ads_by_ad_group_id_request.rb +0 -17
- data/lib/soapy_bing/soap/request/get_bulk_download_status_request.rb +0 -17
- data/lib/soapy_bing/soap/request/get_targets_by_campaign_ids_request.rb +0 -17
- data/lib/soapy_bing/soap/request/poll_generate_report_request.rb +0 -34
- data/lib/soapy_bing/soap/request/submit_generate_report_request.rb +0 -17
- data/lib/soapy_bing/soap/response.rb +0 -14
- data/lib/soapy_bing/soap/response/base.rb +0 -17
- data/lib/soapy_bing/soap/response/download_campaigns_by_account_ids_response.rb +0 -12
- data/lib/soapy_bing/soap/response/get_accounts_info_response.rb +0 -12
- data/lib/soapy_bing/soap/response/get_ad_groups_by_campaign_id_response.rb +0 -12
- data/lib/soapy_bing/soap/response/get_ads_by_ad_group_id_response.rb +0 -12
- data/lib/soapy_bing/soap/response/get_bulk_download_status_response.rb +0 -17
- data/lib/soapy_bing/soap/response/get_targets_by_campaign_ids_response.rb +0 -12
- data/lib/soapy_bing/soap/response/payload.rb +0 -28
- data/lib/soapy_bing/soap/response/poll_generate_report_response.rb +0 -14
- data/lib/soapy_bing/soap/response/report_status.rb +0 -34
- data/lib/soapy_bing/soap/response/submit_generate_report_response.rb +0 -12
- data/lib/soapy_bing/soap/template_renderer.rb +0 -22
- data/lib/soapy_bing/soap/templates/download_campaigns_by_account_ids.xml.erb +0 -22
- data/lib/soapy_bing/soap/templates/get_accounts_info.xml.erb +0 -12
- data/lib/soapy_bing/soap/templates/get_ad_groups_by_campaign_id.xml.erb +0 -15
- data/lib/soapy_bing/soap/templates/get_ads_by_ad_group_id.xml.erb +0 -15
- data/lib/soapy_bing/soap/templates/get_bulk_download_status.xml.erb +0 -15
- data/lib/soapy_bing/soap/templates/get_targets_by_campaign_ids.xml.erb +0 -20
- data/lib/soapy_bing/soap/templates/poll_generate_report.xml.erb +0 -18
- data/lib/soapy_bing/soap/templates/submit_generate_report.xml.erb +0 -46
- data/spec/fixtures/bulk/campaigns.csv +0 -8
- data/spec/fixtures/get_ad_groups_by_campaign_id.json +0 -587
- data/spec/fixtures/get_ads_by_ad_group_id.json +0 -218
- data/spec/fixtures/get_targets_by_campaign_ids.json +0 -81
- data/spec/fixtures/reports/campaign_performance_report.csv +0 -37
- data/spec/fixtures/reports/campaign_performance_report.json +0 -146
- data/spec/fixtures/soap_templates/simple.xml.erb +0 -2
- data/spec/fixtures/vcr_cassettes/SoapyBing_Ads/_get_ad_groups_by_campaign_id/1_1_1.yml +0 -150
- data/spec/fixtures/vcr_cassettes/SoapyBing_Ads/_get_ads_by_ad_group_id/1_2_1.yml +0 -141
- data/spec/fixtures/vcr_cassettes/SoapyBing_Ads/_get_targets_by_campaign_ids/1_3_1.yml +0 -111
- data/spec/fixtures/vcr_cassettes/SoapyBing_Ads_Bulk_Campaigns/_result_file_url/returns_result_file_url.yml +0 -216
- data/spec/fixtures/vcr_cassettes/campaign_performance_report/with_successful_status.yml +0 -284
- data/spec/integration/soapy_bing/ads/bulk/campaigns_spec.rb +0 -35
- data/spec/integration/soapy_bing/ads/reports/campaign_performance_report_spec.rb +0 -40
- data/spec/integration/soapy_bing/ads_spec.rb +0 -32
- data/spec/soapy_bing/ads/reports/campaign_performance_report_spec.rb +0 -42
- data/spec/soapy_bing/ads_spec.rb +0 -33
- data/spec/soapy_bing/helpers/class_name_spec.rb +0 -15
- data/spec/soapy_bing/soap/request/base_spec.rb +0 -55
- data/spec/soapy_bing/soap/request/poll_generate_report_request_spec.rb +0 -60
- data/spec/soapy_bing/soap/response/base_spec.rb +0 -13
- data/spec/soapy_bing/soap/response/get_bulk_download_status_response_spec.rb +0 -60
- data/spec/soapy_bing/soap/response/payload_spec.rb +0 -48
- data/spec/soapy_bing/soap/response/poll_generate_report_response_spec.rb +0 -26
- data/spec/soapy_bing/soap/response/report_status_spec.rb +0 -92
- data/spec/soapy_bing/soap/response/submit_generate_report_response_spec.rb +0 -20
- data/spec/soapy_bing/soap/template_renderer_spec.rb +0 -25
@@ -1,150 +0,0 @@
|
|
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
|
-
- Tue, 19 Jul 2016 08:52:44 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: Tue, 19 Jul 2016 08:52:44 GMT
|
46
|
-
- request:
|
47
|
-
method: post
|
48
|
-
uri: https://campaign.api.bingads.microsoft.com/Api/Advertiser/CampaignManagement/V10/CampaignManagementService.svc
|
49
|
-
body:
|
50
|
-
encoding: UTF-8
|
51
|
-
string: |
|
52
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
53
|
-
<env:Envelope xmlns:tns="https://bingads.microsoft.com/CampaignManagement/v10"
|
54
|
-
xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
|
55
|
-
<env:Header>
|
56
|
-
<tns:CustomerAccountId>bing-ads-account-id</tns:CustomerAccountId>
|
57
|
-
<tns:CustomerId>bing-ads-customer-id</tns:CustomerId>
|
58
|
-
<tns:DeveloperToken>bing-ads-developer-token</tns:DeveloperToken>
|
59
|
-
<tns:AuthenticationToken>bing-ads-oauth-authentication-token</tns:AuthenticationToken>
|
60
|
-
</env:Header>
|
61
|
-
<env:Body>
|
62
|
-
<tns:GetAdGroupsByCampaignIdRequest>
|
63
|
-
<tns:CampaignId>91834220</tns:CampaignId>
|
64
|
-
</tns:GetAdGroupsByCampaignIdRequest>
|
65
|
-
</env:Body>
|
66
|
-
</env:Envelope>
|
67
|
-
headers:
|
68
|
-
Content-Type:
|
69
|
-
- text/xml;charset=UTF-8
|
70
|
-
Soapaction:
|
71
|
-
- GetAdGroupsByCampaignId
|
72
|
-
response:
|
73
|
-
status:
|
74
|
-
code: 200
|
75
|
-
message: OK
|
76
|
-
headers:
|
77
|
-
Cache-Control:
|
78
|
-
- private
|
79
|
-
Content-Length:
|
80
|
-
- '12941'
|
81
|
-
Content-Type:
|
82
|
-
- text/xml; charset=utf-8
|
83
|
-
Server:
|
84
|
-
- Microsoft-IIS/8.0
|
85
|
-
X-Aspnet-Version:
|
86
|
-
- 4.0.30319
|
87
|
-
X-Powered-By:
|
88
|
-
- ASP.NET
|
89
|
-
Date:
|
90
|
-
- Tue, 19 Jul 2016 08:52:44 GMT
|
91
|
-
body:
|
92
|
-
encoding: UTF-8
|
93
|
-
string: <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Header><h:TrackingId
|
94
|
-
xmlns:h="https://bingads.microsoft.com/CampaignManagement/v10">bing-ads-report-tracking-id</h:TrackingId></s:Header><s:Body><GetAdGroupsByCampaignIdResponse
|
95
|
-
xmlns="https://bingads.microsoft.com/CampaignManagement/v10"><AdGroups xmlns:i="http://www.w3.org/2001/XMLSchema-instance"><AdGroup><AdDistribution>Search</AdDistribution><AdRotation><EndDate>2050-01-01T00:00:00</EndDate><StartDate>2016-05-02T00:00:00</StartDate><Type>RotateAdsEvenly</Type></AdRotation><BiddingModel>Keyword</BiddingModel><ContentMatchBid><Amount>0.05</Amount></ContentMatchBid><EndDate
|
96
|
-
i:nil="true"/><ForwardCompatibilityMap xmlns:a="http://schemas.datacontract.org/2004/07/System.Collections.Generic"/><Id>4464286758</Id><Language>English</Language><Name>[animal
|
97
|
-
jam]</Name><NativeBidAdjustment i:nil="true"/><Network>OwnedAndOperatedAndSyndicatedSearch</Network><PricingModel>Cpc</PricingModel><SearchBid><Amount>0.05</Amount></SearchBid><Settings
|
98
|
-
i:nil="true"/><StartDate><Day>2</Day><Month>5</Month><Year>2016</Year></StartDate><Status>Active</Status><TrackingUrlTemplate
|
99
|
-
i:nil="true"/><UrlCustomParameters i:nil="true" xmlns:a="http://schemas.datacontract.org/2004/07/Microsoft.AdCenter.Advertiser.CampaignManagement.Api.DataContracts.V10"/></AdGroup><AdGroup><AdDistribution>Search</AdDistribution><AdRotation><EndDate>2050-01-01T00:00:00</EndDate><StartDate>2016-05-26T00:00:00</StartDate><Type>RotateAdsEvenly</Type></AdRotation><BiddingModel>Keyword</BiddingModel><ContentMatchBid><Amount>0.05</Amount></ContentMatchBid><EndDate
|
100
|
-
i:nil="true"/><ForwardCompatibilityMap xmlns:a="http://schemas.datacontract.org/2004/07/System.Collections.Generic"/><Id>4465398953</Id><Language>English</Language><Name>[animal
|
101
|
-
jam animals]</Name><NativeBidAdjustment i:nil="true"/><Network>OwnedAndOperatedAndSyndicatedSearch</Network><PricingModel>Cpc</PricingModel><SearchBid><Amount>0.05</Amount></SearchBid><Settings
|
102
|
-
i:nil="true"/><StartDate><Day>26</Day><Month>5</Month><Year>2016</Year></StartDate><Status>Active</Status><TrackingUrlTemplate
|
103
|
-
i:nil="true"/><UrlCustomParameters i:nil="true" xmlns:a="http://schemas.datacontract.org/2004/07/Microsoft.AdCenter.Advertiser.CampaignManagement.Api.DataContracts.V10"/></AdGroup><AdGroup><AdDistribution>Search</AdDistribution><AdRotation><EndDate>2050-01-01T00:00:00</EndDate><StartDate>2016-05-26T00:00:00</StartDate><Type>RotateAdsEvenly</Type></AdRotation><BiddingModel>Keyword</BiddingModel><ContentMatchBid><Amount>0.05</Amount></ContentMatchBid><EndDate
|
104
|
-
i:nil="true"/><ForwardCompatibilityMap xmlns:a="http://schemas.datacontract.org/2004/07/System.Collections.Generic"/><Id>4465398954</Id><Language>English</Language><Name>[animal
|
105
|
-
jam codes]</Name><NativeBidAdjustment i:nil="true"/><Network>OwnedAndOperatedAndSyndicatedSearch</Network><PricingModel>Cpc</PricingModel><SearchBid><Amount>0.05</Amount></SearchBid><Settings
|
106
|
-
i:nil="true"/><StartDate><Day>26</Day><Month>5</Month><Year>2016</Year></StartDate><Status>Active</Status><TrackingUrlTemplate
|
107
|
-
i:nil="true"/><UrlCustomParameters i:nil="true" xmlns:a="http://schemas.datacontract.org/2004/07/Microsoft.AdCenter.Advertiser.CampaignManagement.Api.DataContracts.V10"/></AdGroup><AdGroup><AdDistribution>Search</AdDistribution><AdRotation><EndDate>2050-01-01T00:00:00</EndDate><StartDate>2016-05-26T00:00:00</StartDate><Type>RotateAdsEvenly</Type></AdRotation><BiddingModel>Keyword</BiddingModel><ContentMatchBid><Amount>0.05</Amount></ContentMatchBid><EndDate
|
108
|
-
i:nil="true"/><ForwardCompatibilityMap xmlns:a="http://schemas.datacontract.org/2004/07/System.Collections.Generic"/><Id>4465398955</Id><Language>English</Language><Name>[animal
|
109
|
-
jam com]</Name><NativeBidAdjustment i:nil="true"/><Network>OwnedAndOperatedAndSyndicatedSearch</Network><PricingModel>Cpc</PricingModel><SearchBid><Amount>0.05</Amount></SearchBid><Settings
|
110
|
-
i:nil="true"/><StartDate><Day>26</Day><Month>5</Month><Year>2016</Year></StartDate><Status>Active</Status><TrackingUrlTemplate
|
111
|
-
i:nil="true"/><UrlCustomParameters i:nil="true" xmlns:a="http://schemas.datacontract.org/2004/07/Microsoft.AdCenter.Advertiser.CampaignManagement.Api.DataContracts.V10"/></AdGroup><AdGroup><AdDistribution>Search</AdDistribution><AdRotation><EndDate>2050-01-01T00:00:00</EndDate><StartDate>2016-05-26T00:00:00</StartDate><Type>RotateAdsEvenly</Type></AdRotation><BiddingModel>Keyword</BiddingModel><ContentMatchBid><Amount>0.05</Amount></ContentMatchBid><EndDate
|
112
|
-
i:nil="true"/><ForwardCompatibilityMap xmlns:a="http://schemas.datacontract.org/2004/07/System.Collections.Generic"/><Id>4465398956</Id><Language>English</Language><Name>[animal
|
113
|
-
jam free play]</Name><NativeBidAdjustment i:nil="true"/><Network>OwnedAndOperatedAndSyndicatedSearch</Network><PricingModel>Cpc</PricingModel><SearchBid><Amount>0.05</Amount></SearchBid><Settings
|
114
|
-
i:nil="true"/><StartDate><Day>26</Day><Month>5</Month><Year>2016</Year></StartDate><Status>Active</Status><TrackingUrlTemplate
|
115
|
-
i:nil="true"/><UrlCustomParameters i:nil="true" xmlns:a="http://schemas.datacontract.org/2004/07/Microsoft.AdCenter.Advertiser.CampaignManagement.Api.DataContracts.V10"/></AdGroup><AdGroup><AdDistribution>Search</AdDistribution><AdRotation><EndDate>2050-01-01T00:00:00</EndDate><StartDate>2016-05-26T00:00:00</StartDate><Type>RotateAdsEvenly</Type></AdRotation><BiddingModel>Keyword</BiddingModel><ContentMatchBid><Amount>0.05</Amount></ContentMatchBid><EndDate
|
116
|
-
i:nil="true"/><ForwardCompatibilityMap xmlns:a="http://schemas.datacontract.org/2004/07/System.Collections.Generic"/><Id>4465398957</Id><Language>English</Language><Name>[animal
|
117
|
-
jam game online]</Name><NativeBidAdjustment i:nil="true"/><Network>OwnedAndOperatedAndSyndicatedSearch</Network><PricingModel>Cpc</PricingModel><SearchBid><Amount>0.05</Amount></SearchBid><Settings
|
118
|
-
i:nil="true"/><StartDate><Day>26</Day><Month>5</Month><Year>2016</Year></StartDate><Status>Active</Status><TrackingUrlTemplate
|
119
|
-
i:nil="true"/><UrlCustomParameters i:nil="true" xmlns:a="http://schemas.datacontract.org/2004/07/Microsoft.AdCenter.Advertiser.CampaignManagement.Api.DataContracts.V10"/></AdGroup><AdGroup><AdDistribution>Search</AdDistribution><AdRotation><EndDate>2050-01-01T00:00:00</EndDate><StartDate>2016-05-26T00:00:00</StartDate><Type>RotateAdsEvenly</Type></AdRotation><BiddingModel>Keyword</BiddingModel><ContentMatchBid><Amount>0.05</Amount></ContentMatchBid><EndDate
|
120
|
-
i:nil="true"/><ForwardCompatibilityMap xmlns:a="http://schemas.datacontract.org/2004/07/System.Collections.Generic"/><Id>4465398958</Id><Language>English</Language><Name>[animal
|
121
|
-
jam game]</Name><NativeBidAdjustment i:nil="true"/><Network>OwnedAndOperatedAndSyndicatedSearch</Network><PricingModel>Cpc</PricingModel><SearchBid><Amount>0.05</Amount></SearchBid><Settings
|
122
|
-
i:nil="true"/><StartDate><Day>26</Day><Month>5</Month><Year>2016</Year></StartDate><Status>Active</Status><TrackingUrlTemplate
|
123
|
-
i:nil="true"/><UrlCustomParameters i:nil="true" xmlns:a="http://schemas.datacontract.org/2004/07/Microsoft.AdCenter.Advertiser.CampaignManagement.Api.DataContracts.V10"/></AdGroup><AdGroup><AdDistribution>Search</AdDistribution><AdRotation><EndDate>2050-01-01T00:00:00</EndDate><StartDate>2016-05-26T00:00:00</StartDate><Type>RotateAdsEvenly</Type></AdRotation><BiddingModel>Keyword</BiddingModel><ContentMatchBid><Amount>0.05</Amount></ContentMatchBid><EndDate
|
124
|
-
i:nil="true"/><ForwardCompatibilityMap xmlns:a="http://schemas.datacontract.org/2004/07/System.Collections.Generic"/><Id>4465398959</Id><Language>English</Language><Name>[animal
|
125
|
-
jam login]</Name><NativeBidAdjustment i:nil="true"/><Network>OwnedAndOperatedAndSyndicatedSearch</Network><PricingModel>Cpc</PricingModel><SearchBid><Amount>0.05</Amount></SearchBid><Settings
|
126
|
-
i:nil="true"/><StartDate><Day>26</Day><Month>5</Month><Year>2016</Year></StartDate><Status>Active</Status><TrackingUrlTemplate
|
127
|
-
i:nil="true"/><UrlCustomParameters i:nil="true" xmlns:a="http://schemas.datacontract.org/2004/07/Microsoft.AdCenter.Advertiser.CampaignManagement.Api.DataContracts.V10"/></AdGroup><AdGroup><AdDistribution>Search</AdDistribution><AdRotation><EndDate>2050-01-01T00:00:00</EndDate><StartDate>2016-05-26T00:00:00</StartDate><Type>RotateAdsEvenly</Type></AdRotation><BiddingModel>Keyword</BiddingModel><ContentMatchBid><Amount>0.05</Amount></ContentMatchBid><EndDate
|
128
|
-
i:nil="true"/><ForwardCompatibilityMap xmlns:a="http://schemas.datacontract.org/2004/07/System.Collections.Generic"/><Id>4465398960</Id><Language>English</Language><Name>[animal
|
129
|
-
jam membership]</Name><NativeBidAdjustment i:nil="true"/><Network>OwnedAndOperatedAndSyndicatedSearch</Network><PricingModel>Cpc</PricingModel><SearchBid><Amount>0.05</Amount></SearchBid><Settings
|
130
|
-
i:nil="true"/><StartDate><Day>26</Day><Month>5</Month><Year>2016</Year></StartDate><Status>Active</Status><TrackingUrlTemplate
|
131
|
-
i:nil="true"/><UrlCustomParameters i:nil="true" xmlns:a="http://schemas.datacontract.org/2004/07/Microsoft.AdCenter.Advertiser.CampaignManagement.Api.DataContracts.V10"/></AdGroup><AdGroup><AdDistribution>Search</AdDistribution><AdRotation><EndDate>2050-01-01T00:00:00</EndDate><StartDate>2016-05-26T00:00:00</StartDate><Type>RotateAdsEvenly</Type></AdRotation><BiddingModel>Keyword</BiddingModel><ContentMatchBid><Amount>0.05</Amount></ContentMatchBid><EndDate
|
132
|
-
i:nil="true"/><ForwardCompatibilityMap xmlns:a="http://schemas.datacontract.org/2004/07/System.Collections.Generic"/><Id>4465398963</Id><Language>English</Language><Name>[animal
|
133
|
-
jam national geographic]</Name><NativeBidAdjustment i:nil="true"/><Network>OwnedAndOperatedAndSyndicatedSearch</Network><PricingModel>Cpc</PricingModel><SearchBid><Amount>0.05</Amount></SearchBid><Settings
|
134
|
-
i:nil="true"/><StartDate><Day>26</Day><Month>5</Month><Year>2016</Year></StartDate><Status>Active</Status><TrackingUrlTemplate
|
135
|
-
i:nil="true"/><UrlCustomParameters i:nil="true" xmlns:a="http://schemas.datacontract.org/2004/07/Microsoft.AdCenter.Advertiser.CampaignManagement.Api.DataContracts.V10"/></AdGroup><AdGroup><AdDistribution>Search</AdDistribution><AdRotation><EndDate>2050-01-01T00:00:00</EndDate><StartDate>2016-05-26T00:00:00</StartDate><Type>RotateAdsEvenly</Type></AdRotation><BiddingModel>Keyword</BiddingModel><ContentMatchBid><Amount>0.05</Amount></ContentMatchBid><EndDate
|
136
|
-
i:nil="true"/><ForwardCompatibilityMap xmlns:a="http://schemas.datacontract.org/2004/07/System.Collections.Generic"/><Id>4465398965</Id><Language>English</Language><Name>[animal
|
137
|
-
jam play online]</Name><NativeBidAdjustment i:nil="true"/><Network>OwnedAndOperatedAndSyndicatedSearch</Network><PricingModel>Cpc</PricingModel><SearchBid><Amount>0.05</Amount></SearchBid><Settings
|
138
|
-
i:nil="true"/><StartDate><Day>26</Day><Month>5</Month><Year>2016</Year></StartDate><Status>Active</Status><TrackingUrlTemplate
|
139
|
-
i:nil="true"/><UrlCustomParameters i:nil="true" xmlns:a="http://schemas.datacontract.org/2004/07/Microsoft.AdCenter.Advertiser.CampaignManagement.Api.DataContracts.V10"/></AdGroup><AdGroup><AdDistribution>Search</AdDistribution><AdRotation><EndDate>2050-01-01T00:00:00</EndDate><StartDate>2016-05-26T00:00:00</StartDate><Type>RotateAdsEvenly</Type></AdRotation><BiddingModel>Keyword</BiddingModel><ContentMatchBid><Amount>0.05</Amount></ContentMatchBid><EndDate
|
140
|
-
i:nil="true"/><ForwardCompatibilityMap xmlns:a="http://schemas.datacontract.org/2004/07/System.Collections.Generic"/><Id>4465398967</Id><Language>English</Language><Name>[animal
|
141
|
-
jam play wild]</Name><NativeBidAdjustment i:nil="true"/><Network>OwnedAndOperatedAndSyndicatedSearch</Network><PricingModel>Cpc</PricingModel><SearchBid><Amount>0.05</Amount></SearchBid><Settings
|
142
|
-
i:nil="true"/><StartDate><Day>26</Day><Month>5</Month><Year>2016</Year></StartDate><Status>Active</Status><TrackingUrlTemplate
|
143
|
-
i:nil="true"/><UrlCustomParameters i:nil="true" xmlns:a="http://schemas.datacontract.org/2004/07/Microsoft.AdCenter.Advertiser.CampaignManagement.Api.DataContracts.V10"/></AdGroup><AdGroup><AdDistribution>Search</AdDistribution><AdRotation><EndDate>2050-01-01T00:00:00</EndDate><StartDate>2016-05-26T00:00:00</StartDate><Type>RotateAdsEvenly</Type></AdRotation><BiddingModel>Keyword</BiddingModel><ContentMatchBid><Amount>0.05</Amount></ContentMatchBid><EndDate
|
144
|
-
i:nil="true"/><ForwardCompatibilityMap xmlns:a="http://schemas.datacontract.org/2004/07/System.Collections.Generic"/><Id>4465398969</Id><Language>English</Language><Name>[animal
|
145
|
-
jam play]</Name><NativeBidAdjustment i:nil="true"/><Network>OwnedAndOperatedAndSyndicatedSearch</Network><PricingModel>Cpc</PricingModel><SearchBid><Amount>0.05</Amount></SearchBid><Settings
|
146
|
-
i:nil="true"/><StartDate><Day>26</Day><Month>5</Month><Year>2016</Year></StartDate><Status>Active</Status><TrackingUrlTemplate
|
147
|
-
i:nil="true"/><UrlCustomParameters i:nil="true" xmlns:a="http://schemas.datacontract.org/2004/07/Microsoft.AdCenter.Advertiser.CampaignManagement.Api.DataContracts.V10"/></AdGroup></AdGroups></GetAdGroupsByCampaignIdResponse></s:Body></s:Envelope>
|
148
|
-
http_version:
|
149
|
-
recorded_at: Tue, 19 Jul 2016 08:52:45 GMT
|
150
|
-
recorded_with: VCR 3.0.3
|
@@ -1,141 +0,0 @@
|
|
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
|
-
- Tue, 19 Jul 2016 09:19:30 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: Tue, 19 Jul 2016 09:19:31 GMT
|
46
|
-
- request:
|
47
|
-
method: post
|
48
|
-
uri: https://campaign.api.bingads.microsoft.com/Api/Advertiser/CampaignManagement/V10/CampaignManagementService.svc
|
49
|
-
body:
|
50
|
-
encoding: UTF-8
|
51
|
-
string: |
|
52
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
53
|
-
<env:Envelope xmlns:tns="https://bingads.microsoft.com/CampaignManagement/v10"
|
54
|
-
xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
|
55
|
-
<env:Header>
|
56
|
-
<tns:CustomerAccountId>bing-ads-account-id</tns:CustomerAccountId>
|
57
|
-
<tns:CustomerId>bing-ads-customer-id</tns:CustomerId>
|
58
|
-
<tns:DeveloperToken>bing-ads-developer-token</tns:DeveloperToken>
|
59
|
-
<tns:AuthenticationToken>bing-ads-oauth-authentication-token</tns:AuthenticationToken>
|
60
|
-
</env:Header>
|
61
|
-
<env:Body>
|
62
|
-
<tns:GetAdsByAdGroupIdRequest>
|
63
|
-
<tns:AdGroupId>4464286758</tns:AdGroupId>
|
64
|
-
</tns:GetAdsByAdGroupIdRequest>
|
65
|
-
</env:Body>
|
66
|
-
</env:Envelope>
|
67
|
-
headers:
|
68
|
-
Content-Type:
|
69
|
-
- text/xml;charset=UTF-8
|
70
|
-
Soapaction:
|
71
|
-
- GetAdsByAdGroupId
|
72
|
-
response:
|
73
|
-
status:
|
74
|
-
code: 200
|
75
|
-
message: OK
|
76
|
-
headers:
|
77
|
-
Cache-Control:
|
78
|
-
- private
|
79
|
-
Content-Length:
|
80
|
-
- '7345'
|
81
|
-
Content-Type:
|
82
|
-
- text/xml; charset=utf-8
|
83
|
-
Server:
|
84
|
-
- Microsoft-IIS/8.0
|
85
|
-
X-Aspnet-Version:
|
86
|
-
- 4.0.30319
|
87
|
-
X-Powered-By:
|
88
|
-
- ASP.NET
|
89
|
-
Date:
|
90
|
-
- Tue, 19 Jul 2016 09:19:31 GMT
|
91
|
-
body:
|
92
|
-
encoding: UTF-8
|
93
|
-
string: <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Header><h:TrackingId
|
94
|
-
xmlns:h="https://bingads.microsoft.com/CampaignManagement/v10">bing-ads-report-tracking-id</h:TrackingId></s:Header><s:Body><GetAdsByAdGroupIdResponse
|
95
|
-
xmlns="https://bingads.microsoft.com/CampaignManagement/v10"><Ads xmlns:i="http://www.w3.org/2001/XMLSchema-instance"><Ad
|
96
|
-
i:type="TextAd"><DevicePreference>0</DevicePreference><EditorialStatus>Active</EditorialStatus><FinalAppUrls
|
97
|
-
i:nil="true" xmlns:a="http://schemas.datacontract.org/2004/07/Microsoft.AdCenter.Advertiser.CampaignManagement.Api.DataContracts.V10"/><FinalMobileUrls
|
98
|
-
i:nil="true" xmlns:a="http://schemas.microsoft.com/2003/10/Serialization/Arrays"/><FinalUrls
|
99
|
-
i:nil="true" xmlns:a="http://schemas.microsoft.com/2003/10/Serialization/Arrays"/><ForwardCompatibilityMap
|
100
|
-
xmlns:a="http://schemas.datacontract.org/2004/07/System.Collections.Generic"/><Id>11792482357</Id><Status>Paused</Status><TrackingUrlTemplate
|
101
|
-
i:nil="true"/><Type>Text</Type><UrlCustomParameters i:nil="true" xmlns:a="http://schemas.datacontract.org/2004/07/Microsoft.AdCenter.Advertiser.CampaignManagement.Api.DataContracts.V10"/><DestinationUrl>a2g-secure.com/?E=oGFdRFUaQWMI%2f37zhgyAZQ2%2fmAc7YHJa&s1=AJ&s3={AdId}&s4={keyword}</DestinationUrl><DisplayUrl>animaljam.com</DisplayUrl><Text>Online
|
102
|
-
playground for boys and girls who love animals. Register Now!</Text><Title>Animal
|
103
|
-
Jam free to play</Title></Ad><Ad i:type="TextAd"><DevicePreference>0</DevicePreference><EditorialStatus>Active</EditorialStatus><FinalAppUrls
|
104
|
-
i:nil="true" xmlns:a="http://schemas.datacontract.org/2004/07/Microsoft.AdCenter.Advertiser.CampaignManagement.Api.DataContracts.V10"/><FinalMobileUrls
|
105
|
-
i:nil="true" xmlns:a="http://schemas.microsoft.com/2003/10/Serialization/Arrays"/><FinalUrls
|
106
|
-
i:nil="true" xmlns:a="http://schemas.microsoft.com/2003/10/Serialization/Arrays"/><ForwardCompatibilityMap
|
107
|
-
xmlns:a="http://schemas.datacontract.org/2004/07/System.Collections.Generic"/><Id>11792482358</Id><Status>Active</Status><TrackingUrlTemplate
|
108
|
-
i:nil="true"/><Type>Text</Type><UrlCustomParameters i:nil="true" xmlns:a="http://schemas.datacontract.org/2004/07/Microsoft.AdCenter.Advertiser.CampaignManagement.Api.DataContracts.V10"/><DestinationUrl>a2g-secure.com/?E=oGFdRFUaQWMI%2f37zhgyAZQ2%2fmAc7YHJa&s1=AJ&s3={AdId}&s4={keyword}</DestinationUrl><DisplayUrl>animaljam.com</DisplayUrl><Text>Adopt
|
109
|
-
pets, chat with friends, play games and more. Play for free now!</Text><Title>Play
|
110
|
-
Wild in Animal Jam</Title></Ad><Ad i:type="TextAd"><DevicePreference>0</DevicePreference><EditorialStatus>Active</EditorialStatus><FinalAppUrls
|
111
|
-
i:nil="true" xmlns:a="http://schemas.datacontract.org/2004/07/Microsoft.AdCenter.Advertiser.CampaignManagement.Api.DataContracts.V10"/><FinalMobileUrls
|
112
|
-
i:nil="true" xmlns:a="http://schemas.microsoft.com/2003/10/Serialization/Arrays"/><FinalUrls
|
113
|
-
i:nil="true" xmlns:a="http://schemas.microsoft.com/2003/10/Serialization/Arrays"/><ForwardCompatibilityMap
|
114
|
-
xmlns:a="http://schemas.datacontract.org/2004/07/System.Collections.Generic"/><Id>11792482359</Id><Status>Paused</Status><TrackingUrlTemplate
|
115
|
-
i:nil="true"/><Type>Text</Type><UrlCustomParameters i:nil="true" xmlns:a="http://schemas.datacontract.org/2004/07/Microsoft.AdCenter.Advertiser.CampaignManagement.Api.DataContracts.V10"/><DestinationUrl>a2g-secure.com/?E=oGFdRFUaQWMI%2f37zhgyAZQ2%2fmAc7YHJa&s1=AJ&s3={AdId}&s4={keyword}</DestinationUrl><DisplayUrl>animaljam.com</DisplayUrl><Text>Have
|
116
|
-
fun with National Geographic's Animal Jam - play now for free!</Text><Title>Play
|
117
|
-
Animal Jam Online</Title></Ad><Ad i:type="TextAd"><DevicePreference>0</DevicePreference><EditorialStatus>Active</EditorialStatus><FinalAppUrls
|
118
|
-
i:nil="true" xmlns:a="http://schemas.datacontract.org/2004/07/Microsoft.AdCenter.Advertiser.CampaignManagement.Api.DataContracts.V10"/><FinalMobileUrls
|
119
|
-
i:nil="true" xmlns:a="http://schemas.microsoft.com/2003/10/Serialization/Arrays"/><FinalUrls
|
120
|
-
i:nil="true" xmlns:a="http://schemas.microsoft.com/2003/10/Serialization/Arrays"/><ForwardCompatibilityMap
|
121
|
-
xmlns:a="http://schemas.datacontract.org/2004/07/System.Collections.Generic"><a:KeyValuePairOfstringstring><a:key>NativePreference</a:key><a:value>False</a:value></a:KeyValuePairOfstringstring></ForwardCompatibilityMap><Id>13055725676</Id><Status>Active</Status><TrackingUrlTemplate
|
122
|
-
i:nil="true"/><Type>Text</Type><UrlCustomParameters i:nil="true" xmlns:a="http://schemas.datacontract.org/2004/07/Microsoft.AdCenter.Advertiser.CampaignManagement.Api.DataContracts.V10"/><DestinationUrl>a2g-secure.com/?E=oGFdRFUaQWMI%2f37zhgyAZQ2%2fmAc7YHJa&s1=AJ&s3={AdId}&s4={keyword}</DestinationUrl><DisplayUrl>AnimalJam.com</DisplayUrl><Text>Adopt
|
123
|
-
pets, chat with friends, play games and have fun. Play now!</Text><Title>Play
|
124
|
-
Wild in Animal Jam</Title></Ad><Ad i:type="TextAd"><DevicePreference>0</DevicePreference><EditorialStatus>Active</EditorialStatus><FinalAppUrls
|
125
|
-
i:nil="true" xmlns:a="http://schemas.datacontract.org/2004/07/Microsoft.AdCenter.Advertiser.CampaignManagement.Api.DataContracts.V10"/><FinalMobileUrls
|
126
|
-
i:nil="true" xmlns:a="http://schemas.microsoft.com/2003/10/Serialization/Arrays"/><FinalUrls
|
127
|
-
i:nil="true" xmlns:a="http://schemas.microsoft.com/2003/10/Serialization/Arrays"/><ForwardCompatibilityMap
|
128
|
-
xmlns:a="http://schemas.datacontract.org/2004/07/System.Collections.Generic"><a:KeyValuePairOfstringstring><a:key>NativePreference</a:key><a:value>False</a:value></a:KeyValuePairOfstringstring></ForwardCompatibilityMap><Id>13089495292</Id><Status>Paused</Status><TrackingUrlTemplate
|
129
|
-
i:nil="true"/><Type>Text</Type><UrlCustomParameters i:nil="true" xmlns:a="http://schemas.datacontract.org/2004/07/Microsoft.AdCenter.Advertiser.CampaignManagement.Api.DataContracts.V10"/><DestinationUrl>a2g-secure.com/?E=oGFdRFUaQWMI%2f37zhgyAZQ2%2fmAc7YHJa&s1=AJ&s3={AdId}&s4={keyword}</DestinationUrl><DisplayUrl>AnimalJam.com</DisplayUrl><Text>Virtual
|
130
|
-
pets, parties and more. Join the fun. Play Wild!</Text><Title>Play Wild in
|
131
|
-
Animal Jam</Title></Ad><Ad i:type="TextAd"><DevicePreference>0</DevicePreference><EditorialStatus>Active</EditorialStatus><FinalAppUrls
|
132
|
-
i:nil="true" xmlns:a="http://schemas.datacontract.org/2004/07/Microsoft.AdCenter.Advertiser.CampaignManagement.Api.DataContracts.V10"/><FinalMobileUrls
|
133
|
-
i:nil="true" xmlns:a="http://schemas.microsoft.com/2003/10/Serialization/Arrays"/><FinalUrls
|
134
|
-
i:nil="true" xmlns:a="http://schemas.microsoft.com/2003/10/Serialization/Arrays"/><ForwardCompatibilityMap
|
135
|
-
xmlns:a="http://schemas.datacontract.org/2004/07/System.Collections.Generic"><a:KeyValuePairOfstringstring><a:key>NativePreference</a:key><a:value>False</a:value></a:KeyValuePairOfstringstring></ForwardCompatibilityMap><Id>13950954205</Id><Status>Active</Status><TrackingUrlTemplate
|
136
|
-
i:nil="true"/><Type>Text</Type><UrlCustomParameters i:nil="true" xmlns:a="http://schemas.datacontract.org/2004/07/Microsoft.AdCenter.Advertiser.CampaignManagement.Api.DataContracts.V10"/><DestinationUrl>a2g-secure.com/?E=oGFdRFUaQWMI%2f37zhgyAZQ2%2fmAc7YHJa&s1=AJ&s3={AdId}&s4={keyword}</DestinationUrl><DisplayUrl>PlayWild.AnimalJam.com</DisplayUrl><Text>Adopt
|
137
|
-
pets, chat with friends, play games and more. Play for free now!</Text><Title>Play
|
138
|
-
Wild in Animal Jam</Title></Ad></Ads></GetAdsByAdGroupIdResponse></s:Body></s:Envelope>
|
139
|
-
http_version:
|
140
|
-
recorded_at: Tue, 19 Jul 2016 09:19:32 GMT
|
141
|
-
recorded_with: VCR 3.0.3
|
@@ -1,111 +0,0 @@
|
|
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
|
-
- Tue, 19 Jul 2016 12:10:20 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: Tue, 19 Jul 2016 12:10:20 GMT
|
46
|
-
- request:
|
47
|
-
method: post
|
48
|
-
uri: https://campaign.api.bingads.microsoft.com/Api/Advertiser/CampaignManagement/V10/CampaignManagementService.svc
|
49
|
-
body:
|
50
|
-
encoding: UTF-8
|
51
|
-
string: |
|
52
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
53
|
-
<env:Envelope xmlns:tns="https://bingads.microsoft.com/CampaignManagement/v10"
|
54
|
-
xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
|
55
|
-
xmlns:arr="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
|
56
|
-
<env:Header>
|
57
|
-
<tns:CustomerAccountId>bing-ads-account-id</tns:CustomerAccountId>
|
58
|
-
<tns:CustomerId>bing-ads-customer-id</tns:CustomerId>
|
59
|
-
<tns:DeveloperToken>bing-ads-developer-token</tns:DeveloperToken>
|
60
|
-
<tns:AuthenticationToken>bing-ads-oauth-authentication-token</tns:AuthenticationToken>
|
61
|
-
</env:Header>
|
62
|
-
<env:Body>
|
63
|
-
<tns:GetTargetsByCampaignIdsRequest>
|
64
|
-
<tns:CampaignIds>
|
65
|
-
<arr:long>91834220</arr:long>
|
66
|
-
</tns:CampaignIds>
|
67
|
-
</tns:GetTargetsByCampaignIdsRequest>
|
68
|
-
</env:Body>
|
69
|
-
</env:Envelope>
|
70
|
-
headers:
|
71
|
-
Content-Type:
|
72
|
-
- text/xml;charset=UTF-8
|
73
|
-
Soapaction:
|
74
|
-
- GetTargetsByCampaignIds
|
75
|
-
response:
|
76
|
-
status:
|
77
|
-
code: 200
|
78
|
-
message: OK
|
79
|
-
headers:
|
80
|
-
Cache-Control:
|
81
|
-
- private
|
82
|
-
Content-Length:
|
83
|
-
- '1922'
|
84
|
-
Content-Type:
|
85
|
-
- text/xml; charset=utf-8
|
86
|
-
Server:
|
87
|
-
- Microsoft-IIS/8.5
|
88
|
-
X-Aspnet-Version:
|
89
|
-
- 4.0.30319
|
90
|
-
X-Powered-By:
|
91
|
-
- ASP.NET
|
92
|
-
Date:
|
93
|
-
- Tue, 19 Jul 2016 12:10:20 GMT
|
94
|
-
body:
|
95
|
-
encoding: UTF-8
|
96
|
-
string: <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Header><h:TrackingId
|
97
|
-
xmlns:h="https://bingads.microsoft.com/CampaignManagement/v10">bing-ads-report-tracking-id</h:TrackingId></s:Header><s:Body><GetTargetsByCampaignIdsResponse
|
98
|
-
xmlns="https://bingads.microsoft.com/CampaignManagement/v10"><PartialErrors
|
99
|
-
xmlns:i="http://www.w3.org/2001/XMLSchema-instance"/><Targets xmlns:i="http://www.w3.org/2001/XMLSchema-instance"><Target><Age
|
100
|
-
i:nil="true"/><DayTime i:nil="true"/><DeviceOS><Bids><DeviceOSTargetBid><BidAdjustment>0</BidAdjustment><DeviceName>Computers</DeviceName><OSNames
|
101
|
-
i:nil="true" xmlns:a="http://schemas.microsoft.com/2003/10/Serialization/Arrays"/></DeviceOSTargetBid><DeviceOSTargetBid><BidAdjustment>-100</BidAdjustment><DeviceName>Smartphones</DeviceName><OSNames
|
102
|
-
i:nil="true" xmlns:a="http://schemas.microsoft.com/2003/10/Serialization/Arrays"/></DeviceOSTargetBid><DeviceOSTargetBid><BidAdjustment>0</BidAdjustment><DeviceName>Tablets</DeviceName><OSNames
|
103
|
-
i:nil="true" xmlns:a="http://schemas.microsoft.com/2003/10/Serialization/Arrays"/></DeviceOSTargetBid></Bids></DeviceOS><ForwardCompatibilityMap
|
104
|
-
xmlns:a="http://schemas.datacontract.org/2004/07/System.Collections.Generic"/><Gender
|
105
|
-
i:nil="true"/><Id>462821758</Id><IsLibraryTarget>true</IsLibraryTarget><Location><CityTarget
|
106
|
-
i:nil="true"/><CountryTarget><Bids><CountryTargetBid><BidAdjustment>0</BidAdjustment><CountryAndRegion>AU</CountryAndRegion><IsExcluded>false</IsExcluded></CountryTargetBid><CountryTargetBid><BidAdjustment>0</BidAdjustment><CountryAndRegion>US</CountryAndRegion><IsExcluded>true</IsExcluded></CountryTargetBid></Bids></CountryTarget><IntentOption>PeopleIn</IntentOption><MetroAreaTarget
|
107
|
-
i:nil="true"/><PostalCodeTarget i:nil="true"/><RadiusTarget i:nil="true"/><StateTarget
|
108
|
-
i:nil="true"/></Location><Name>targetgroup1</Name></Target></Targets></GetTargetsByCampaignIdsResponse></s:Body></s:Envelope>
|
109
|
-
http_version:
|
110
|
-
recorded_at: Tue, 19 Jul 2016 12:10:21 GMT
|
111
|
-
recorded_with: VCR 3.0.3
|
@@ -1,216 +0,0 @@
|
|
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
|
-
- Fri, 09 Sep 2016 14:46:46 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: Fri, 09 Sep 2016 14:46:47 GMT
|
46
|
-
- request:
|
47
|
-
method: post
|
48
|
-
uri: https://bulk.api.bingads.microsoft.com/Api/Advertiser/CampaignManagement/V10/BulkService.svc
|
49
|
-
body:
|
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/CampaignManagement/v10">
|
55
|
-
<Action mustUnderstand="1">DownloadCampaignsByAccountIds</Action>
|
56
|
-
<AuthenticationToken i:nil="false">bing-ads-oauth-authentication-token</AuthenticationToken>
|
57
|
-
<CustomerAccountId i:nil="false">bing-ads-account-id</CustomerAccountId>
|
58
|
-
<CustomerId i:nil="false">bing-ads-customer-id</CustomerId>
|
59
|
-
<DeveloperToken i:nil="false">bing-ads-developer-token</DeveloperToken>
|
60
|
-
</s:Header>
|
61
|
-
<s:Body>
|
62
|
-
<DownloadCampaignsByAccountIdsRequest xmlns="https://bingads.microsoft.com/CampaignManagement/v10">
|
63
|
-
<AccountIds i:nil="false" xmlns:a1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
|
64
|
-
<a1:long>bing-ads-account-id</a1:long>
|
65
|
-
</AccountIds>
|
66
|
-
<CompressionType i:nil="false">Zip</CompressionType>
|
67
|
-
<DataScope>EntityData</DataScope>
|
68
|
-
<DownloadFileType i:nil="false">Csv</DownloadFileType>
|
69
|
-
<Entities>CampaignTargets Ads</Entities>
|
70
|
-
<FormatVersion i:nil="false">4.0</FormatVersion>
|
71
|
-
</DownloadCampaignsByAccountIdsRequest>
|
72
|
-
</s:Body>
|
73
|
-
</s:Envelope>
|
74
|
-
headers:
|
75
|
-
Content-Type:
|
76
|
-
- text/xml;charset=UTF-8
|
77
|
-
Soapaction:
|
78
|
-
- DownloadCampaignsByAccountIds
|
79
|
-
response:
|
80
|
-
status:
|
81
|
-
code: 200
|
82
|
-
message: OK
|
83
|
-
headers:
|
84
|
-
Cache-Control:
|
85
|
-
- private
|
86
|
-
Content-Length:
|
87
|
-
- '431'
|
88
|
-
Content-Type:
|
89
|
-
- text/xml; charset=utf-8
|
90
|
-
Server:
|
91
|
-
- Microsoft-IIS/8.0
|
92
|
-
X-Aspnet-Version:
|
93
|
-
- 4.0.30319
|
94
|
-
X-Powered-By:
|
95
|
-
- ASP.NET
|
96
|
-
Date:
|
97
|
-
- Fri, 09 Sep 2016 14:46:48 GMT
|
98
|
-
body:
|
99
|
-
encoding: UTF-8
|
100
|
-
string: <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Header><h:TrackingId
|
101
|
-
xmlns:h="https://bingads.microsoft.com/CampaignManagement/v10">bing-ads-report-tracking-id</h:TrackingId></s:Header><s:Body><DownloadCampaignsByAccountIdsResponse
|
102
|
-
xmlns="https://bingads.microsoft.com/CampaignManagement/v10"><DownloadRequestId>154890307</DownloadRequestId></DownloadCampaignsByAccountIdsResponse></s:Body></s:Envelope>
|
103
|
-
http_version:
|
104
|
-
recorded_at: Fri, 09 Sep 2016 14:46:48 GMT
|
105
|
-
- request:
|
106
|
-
method: post
|
107
|
-
uri: https://bulk.api.bingads.microsoft.com/Api/Advertiser/CampaignManagement/V10/BulkService.svc
|
108
|
-
body:
|
109
|
-
encoding: UTF-8
|
110
|
-
string: |
|
111
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
112
|
-
<s:Envelope xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
|
113
|
-
<s:Header xmlns="https://bingads.microsoft.com/CampaignManagement/v10">
|
114
|
-
<Action mustUnderstand="1">GetBulkDownloadStatus</Action>
|
115
|
-
<AuthenticationToken i:nil="false">bing-ads-oauth-authentication-token</AuthenticationToken>
|
116
|
-
<CustomerAccountId i:nil="false">bing-ads-account-id</CustomerAccountId>
|
117
|
-
<CustomerId i:nil="false">bing-ads-customer-id</CustomerId>
|
118
|
-
<DeveloperToken i:nil="false">bing-ads-developer-token</DeveloperToken>
|
119
|
-
</s:Header>
|
120
|
-
<s:Body>
|
121
|
-
<GetBulkDownloadStatusRequest xmlns="https://bingads.microsoft.com/CampaignManagement/v10">
|
122
|
-
<RequestId i:nil="false">154890307</RequestId>
|
123
|
-
</GetBulkDownloadStatusRequest>
|
124
|
-
</s:Body>
|
125
|
-
</s:Envelope>
|
126
|
-
headers:
|
127
|
-
Content-Type:
|
128
|
-
- text/xml;charset=UTF-8
|
129
|
-
Soapaction:
|
130
|
-
- GetBulkDownloadStatus
|
131
|
-
response:
|
132
|
-
status:
|
133
|
-
code: 200
|
134
|
-
message: OK
|
135
|
-
headers:
|
136
|
-
Cache-Control:
|
137
|
-
- private
|
138
|
-
Content-Length:
|
139
|
-
- '754'
|
140
|
-
Content-Type:
|
141
|
-
- text/xml; charset=utf-8
|
142
|
-
Server:
|
143
|
-
- Microsoft-IIS/8.5
|
144
|
-
X-Aspnet-Version:
|
145
|
-
- 4.0.30319
|
146
|
-
X-Powered-By:
|
147
|
-
- ASP.NET
|
148
|
-
Date:
|
149
|
-
- Fri, 09 Sep 2016 14:46:49 GMT
|
150
|
-
body:
|
151
|
-
encoding: UTF-8
|
152
|
-
string: <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Header><h:TrackingId
|
153
|
-
xmlns:h="https://bingads.microsoft.com/CampaignManagement/v10">bing-ads-report-tracking-id</h:TrackingId></s:Header><s:Body><GetBulkDownloadStatusResponse
|
154
|
-
xmlns="https://bingads.microsoft.com/CampaignManagement/v10"><Errors i:nil="true"
|
155
|
-
xmlns:i="http://www.w3.org/2001/XMLSchema-instance"/><ForwardCompatibilityMap
|
156
|
-
xmlns:a="http://schemas.datacontract.org/2004/07/System.Collections.Generic"
|
157
|
-
xmlns:i="http://www.w3.org/2001/XMLSchema-instance"/><PercentComplete>1</PercentComplete><RequestStatus>InProgress</RequestStatus><ResultFileUrl
|
158
|
-
i:nil="true" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"/></GetBulkDownloadStatusResponse></s:Body></s:Envelope>
|
159
|
-
http_version:
|
160
|
-
recorded_at: Fri, 09 Sep 2016 14:46:50 GMT
|
161
|
-
- request:
|
162
|
-
method: post
|
163
|
-
uri: https://bulk.api.bingads.microsoft.com/Api/Advertiser/CampaignManagement/V10/BulkService.svc
|
164
|
-
body:
|
165
|
-
encoding: UTF-8
|
166
|
-
string: |
|
167
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
168
|
-
<s:Envelope xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
|
169
|
-
<s:Header xmlns="https://bingads.microsoft.com/CampaignManagement/v10">
|
170
|
-
<Action mustUnderstand="1">GetBulkDownloadStatus</Action>
|
171
|
-
<AuthenticationToken i:nil="false">bing-ads-oauth-authentication-token</AuthenticationToken>
|
172
|
-
<CustomerAccountId i:nil="false">bing-ads-account-id</CustomerAccountId>
|
173
|
-
<CustomerId i:nil="false">bing-ads-customer-id</CustomerId>
|
174
|
-
<DeveloperToken i:nil="false">bing-ads-developer-token</DeveloperToken>
|
175
|
-
</s:Header>
|
176
|
-
<s:Body>
|
177
|
-
<GetBulkDownloadStatusRequest xmlns="https://bingads.microsoft.com/CampaignManagement/v10">
|
178
|
-
<RequestId i:nil="false">154890307</RequestId>
|
179
|
-
</GetBulkDownloadStatusRequest>
|
180
|
-
</s:Body>
|
181
|
-
</s:Envelope>
|
182
|
-
headers:
|
183
|
-
Content-Type:
|
184
|
-
- text/xml;charset=UTF-8
|
185
|
-
Soapaction:
|
186
|
-
- GetBulkDownloadStatus
|
187
|
-
response:
|
188
|
-
status:
|
189
|
-
code: 200
|
190
|
-
message: OK
|
191
|
-
headers:
|
192
|
-
Cache-Control:
|
193
|
-
- private
|
194
|
-
Content-Length:
|
195
|
-
- '1004'
|
196
|
-
Content-Type:
|
197
|
-
- text/xml; charset=utf-8
|
198
|
-
Server:
|
199
|
-
- Microsoft-IIS/8.5
|
200
|
-
X-Aspnet-Version:
|
201
|
-
- 4.0.30319
|
202
|
-
X-Powered-By:
|
203
|
-
- ASP.NET
|
204
|
-
Date:
|
205
|
-
- Fri, 09 Sep 2016 14:46:53 GMT
|
206
|
-
body:
|
207
|
-
encoding: UTF-8
|
208
|
-
string: <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Header><h:TrackingId
|
209
|
-
xmlns:h="https://bingads.microsoft.com/CampaignManagement/v10">bing-ads-report-tracking-id</h:TrackingId></s:Header><s:Body><GetBulkDownloadStatusResponse
|
210
|
-
xmlns="https://bingads.microsoft.com/CampaignManagement/v10"><Errors i:nil="true"
|
211
|
-
xmlns:i="http://www.w3.org/2001/XMLSchema-instance"/><ForwardCompatibilityMap
|
212
|
-
xmlns:a="http://schemas.datacontract.org/2004/07/System.Collections.Generic"
|
213
|
-
xmlns:i="http://www.w3.org/2001/XMLSchema-instance"/><PercentComplete>100</PercentComplete><RequestStatus>Completed</RequestStatus><ResultFileUrl>https://bingadsappsstorageprod.blob.core.windows.net/bulkdownloadresultfiles/DownloadHierarchy-154890307-58bad0ef-83d5-4362-a951-e07d57b2bd2b.zip?sv=2014-02-14&sr=b&sig=tStnHwvyqAAJqitslN%2BuRYxlMXB2UYFYepPVJzT1sJg%3D&st=2016-09-09T14%3A41%3A53Z&se=2016-09-09T15%3A06%3A53Z&sp=rl</ResultFileUrl></GetBulkDownloadStatusResponse></s:Body></s:Envelope>
|
214
|
-
http_version:
|
215
|
-
recorded_at: Fri, 09 Sep 2016 14:46:53 GMT
|
216
|
-
recorded_with: VCR 3.0.3
|