--- http_interactions: - request: method: post uri: https://login.live-int.com/oauth20_token.srf body: encoding: UTF-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 headers: Accept-Encoding: - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 Accept: - "*/*" User-Agent: - Ruby response: status: code: 200 message: OK headers: Cache-Control: - no-store Pragma: - no-cache Content-Type: - application/json Server: - Microsoft-IIS/8.5 Liveidtestresp: - '' Ppserver: - 'PPV: 30 H: BY2INTIDSLGN11 V: 0' X-Content-Type-Options: - nosniff Strict-Transport-Security: - max-age=31536000 X-Xss-Protection: - 1; mode=block Date: - Thu, 24 Jan 2019 11:39:06 GMT Content-Length: - '1630' body: encoding: UTF-8 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"}' http_version: recorded_at: Thu, 24 Jan 2019 11:39:06 GMT - request: method: post uri: https://bulk.api.sandbox.bingads.microsoft.com/Api/Advertiser/CampaignManagement/V12/BulkService.svc body: encoding: UTF-8 string: <?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tns="https://bingads.microsoft.com/CampaignManagement/v12" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Header><tns:Action>DownloadCampaignsByAccountIds</tns:Action><tns:AuthenticationToken>bing-ads-oauth-authentication-token</tns:AuthenticationToken><tns:DeveloperToken>bing-ads-developer-token</tns:DeveloperToken><tns:CustomerAccountId>bing-ads-account-id</tns:CustomerAccountId></env:Header><env:Body><tns:DownloadCampaignsByAccountIdsRequest><tns:AccountIds xmlns:a1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"><a1:long>bing-ads-account-id</a1:long></tns:AccountIds><tns:DownloadEntities><tns:DownloadEntity>Campaigns</tns:DownloadEntity></tns:DownloadEntities><tns:DownloadFileType>Csv</tns:DownloadFileType><tns:FormatVersion>6.0</tns:FormatVersion></tns:DownloadCampaignsByAccountIdsRequest></env:Body></env:Envelope> headers: Soapaction: - '"DownloadCampaignsByAccountIds"' Content-Type: - text/xml;charset=UTF-8 Content-Length: - '2022' Accept-Encoding: - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 Accept: - "*/*" User-Agent: - Ruby response: status: code: 200 message: OK headers: Cache-Control: - private Content-Type: - text/xml; charset=utf-8 Vary: - Accept-Encoding Server: - Microsoft-IIS/10.0 X-Aspnet-Version: - 4.0.30319 X-Powered-By: - ASP.NET Date: - Thu, 24 Jan 2019 11:39:08 GMT Content-Length: - '252' body: encoding: ASCII-8BIT string: <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Header><h:TrackingId xmlns:h="https://bingads.microsoft.com/CampaignManagement/v12">bing-ads-report-tracking-id</h:TrackingId></s:Header><s:Body><DownloadCampaignsByAccountIdsResponse xmlns="https://bingads.microsoft.com/CampaignManagement/v12"><DownloadRequestId>68731147327</DownloadRequestId></DownloadCampaignsByAccountIdsResponse></s:Body></s:Envelope> http_version: recorded_at: Thu, 24 Jan 2019 11:39:08 GMT - request: method: post uri: https://bulk.api.sandbox.bingads.microsoft.com/Api/Advertiser/CampaignManagement/V12/BulkService.svc body: encoding: UTF-8 string: <?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tns="https://bingads.microsoft.com/CampaignManagement/v12" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Header><tns:Action>GetBulkDownloadStatus</tns:Action><tns:AuthenticationToken>bing-ads-oauth-authentication-token</tns:AuthenticationToken><tns:DeveloperToken>bing-ads-developer-token</tns:DeveloperToken><tns:CustomerAccountId>bing-ads-account-id</tns:CustomerAccountId></env:Header><env:Body><tns:GetBulkDownloadStatusRequest><tns:RequestId>68731147327</tns:RequestId></tns:GetBulkDownloadStatusRequest></env:Body></env:Envelope> headers: Soapaction: - '"GetBulkDownloadStatus"' Content-Type: - text/xml;charset=UTF-8 Content-Length: - '1725' Accept-Encoding: - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 Accept: - "*/*" User-Agent: - Ruby response: status: code: 200 message: OK headers: Cache-Control: - private Content-Type: - text/xml; charset=utf-8 Vary: - Accept-Encoding Server: - Microsoft-IIS/10.0 X-Aspnet-Version: - 4.0.30319 X-Powered-By: - ASP.NET Date: - Thu, 24 Jan 2019 11:39:09 GMT Content-Length: - '380' body: encoding: ASCII-8BIT string: <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Header><h:TrackingId xmlns:h="https://bingads.microsoft.com/CampaignManagement/v12">bing-ads-report-tracking-id</h:TrackingId></s:Header><s:Body><GetBulkDownloadStatusResponse xmlns="https://bingads.microsoft.com/CampaignManagement/v12"><Errors i:nil="true" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"/><ForwardCompatibilityMap xmlns:a="http://schemas.datacontract.org/2004/07/System.Collections.Generic" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"/><PercentComplete>1</PercentComplete><RequestStatus>InProgress</RequestStatus><ResultFileUrl i:nil="true" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"/></GetBulkDownloadStatusResponse></s:Body></s:Envelope> http_version: recorded_at: Thu, 24 Jan 2019 11:39:09 GMT - request: method: post uri: https://bulk.api.sandbox.bingads.microsoft.com/Api/Advertiser/CampaignManagement/V12/BulkService.svc body: encoding: UTF-8 string: <?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tns="https://bingads.microsoft.com/CampaignManagement/v12" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Header><tns:Action>GetBulkDownloadStatus</tns:Action><tns:AuthenticationToken>bing-ads-oauth-authentication-token</tns:AuthenticationToken><tns:DeveloperToken>bing-ads-developer-token</tns:DeveloperToken><tns:CustomerAccountId>bing-ads-account-id</tns:CustomerAccountId></env:Header><env:Body><tns:GetBulkDownloadStatusRequest><tns:RequestId>68731147327</tns:RequestId></tns:GetBulkDownloadStatusRequest></env:Body></env:Envelope> headers: Soapaction: - '"GetBulkDownloadStatus"' Content-Type: - text/xml;charset=UTF-8 Content-Length: - '1725' Accept-Encoding: - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 Accept: - "*/*" User-Agent: - Ruby response: status: code: 200 message: OK headers: Cache-Control: - private Content-Type: - text/xml; charset=utf-8 Vary: - Accept-Encoding Server: - Microsoft-IIS/10.0 X-Aspnet-Version: - 4.0.30319 X-Powered-By: - ASP.NET Date: - Thu, 24 Jan 2019 11:41:10 GMT Content-Length: - '573' body: encoding: ASCII-8BIT string: <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Header><h:TrackingId xmlns:h="https://bingads.microsoft.com/CampaignManagement/v12">bing-ads-report-tracking-id</h:TrackingId></s:Header><s:Body><GetBulkDownloadStatusResponse xmlns="https://bingads.microsoft.com/CampaignManagement/v12"><Errors i:nil="true" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"/><ForwardCompatibilityMap xmlns:a="http://schemas.datacontract.org/2004/07/System.Collections.Generic" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"/><PercentComplete>100</PercentComplete><RequestStatus>Completed</RequestStatus><ResultFileUrl>https://bingadsappsstoragesi.blob.core.windows.net/bulkdownloadresultfiles/DownloadHierarchy-68731147327-ea7b549b-84c8-4cc9-a6f8-52de6f8f0757.zip?sv=2015-12-11&sr=b&sig=%2FmYHN0O%2FgtwZ27iUKOxuyfIcb%2FhI%2BIEU2%2B%2BSJFr8DKo%3D&st=2019-01-24T11%3A36%3A11Z&se=2019-01-24T12%3A01%3A11Z&sp=rl</ResultFileUrl></GetBulkDownloadStatusResponse></s:Body></s:Envelope> http_version: recorded_at: Thu, 24 Jan 2019 11:41:11 GMT - request: method: get uri: https://bingadsappsstoragesi.blob.core.windows.net/bulkdownloadresultfiles/DownloadHierarchy-68731147327-ea7b549b-84c8-4cc9-a6f8-52de6f8f0757.zip?se=2019-01-24T12:01:11Z&sig=/mYHN0O/gtwZ27iUKOxuyfIcb/hI%2BIEU2%2B%2BSJFr8DKo=&sp=rl&sr=b&st=2019-01-24T11:36:11Z&sv=2015-12-11 body: encoding: US-ASCII string: '' headers: Accept-Encoding: - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 Accept: - "*/*" User-Agent: - Ruby response: status: code: 200 message: OK headers: Content-Length: - '1790' Content-Type: - application/zip Content-Md5: - 5kFCTYH99tJZZu/bRO1GUQ== Last-Modified: - Thu, 24 Jan 2019 11:39:11 GMT Accept-Ranges: - bytes Etag: - '"0x8D681F08F64C0C2"' Server: - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 X-Ms-Request-Id: - e8481aac-c01e-00fa-07d9-b3f2c8000000 X-Ms-Version: - '2015-12-11' X-Ms-Meta-Retentionlookupkey: - MultiAccountDownloadSI X-Ms-Meta-Trackingid: - 1a25f598-d256-43c6-8a27-d1fe665f42d7 X-Ms-Meta-Requestid: - c4997fb0-9712-460b-b9de-b2776ee1c497 X-Ms-Meta-Sessionid: - c4997fb0-9712-460b-b9de-b2776ee1c497 X-Ms-Meta-Creatormachinename: - BN2BEAP00000AFA X-Ms-Lease-Status: - unlocked X-Ms-Lease-State: - available X-Ms-Blob-Type: - BlockBlob Content-Disposition: - attachment;filename=DownloadHierarchy-68731147327-ea7b549b-84c8-4cc9-a6f8-52de6f8f0757.zip X-Ms-Server-Encrypted: - 'true' Access-Control-Expose-Headers: - x-ms-request-id,Server,x-ms-version,x-ms-meta-RetentionLookupKey,x-ms-meta-TrackingId,x-ms-meta-RequestId,x-ms-meta-SessionId,x-ms-meta-CreatorMachineName,Content-Type,Last-Modified,ETag,Content-MD5,x-ms-lease-status,x-ms-lease-state,x-ms-blob-type,Content-Disposition,x-ms-server-encrypted,Accept-Ranges,Content-Length,Date,Transfer-Encoding Access-Control-Allow-Origin: - "*" Date: - Thu, 24 Jan 2019 11:41:11 GMT body: encoding: ASCII-8BIT string: !binary |- UEsDBBQAAAAIACVlOE7ngxK6YwYAAFkTAAAMAAAAQWNjb3VudHMuY3N23Vjbcts2EH33V+ADMIlF6mL7TZZsRxMpVkXZmekbRMISapJgQdCN+vU9AAiSlpj0oZnptHwQdw+WuOwuFgfaHgtOI810VdJFQtdM8VwTSFG1I1vTOGNZwcQ+p9OEPChZFfQr35VC47NjHpOtyGCTivqzlUzEi+CJw1fRbPl5MSfTSkuyZfu9yPfkLme7lCd0q1j8aoAtz4qUocNZVWqZEUyCZVxzRe9FzlLypFL0uxMpJy1g+ie/ypzT2yrZczt4LX3B17XsIbuSW5GQSCuMtD/2ICv2bVbEJ1ZM4fNZwegiP3CFVSfkvJvP/PiHVMkzU4LlesV0fPCL9N5zhmslJDo50qWMWbrI3+A1qY7TpPT2CIXSZG68cZcnTvjCNbp/JXNRaiV2lRbSRmMjETcjY9pmVnTJ8n3F9py6aZOIaw0Hm2HfWHwkdZzNAh4L+6URb6UsNXlmaYUPhU7xy79pitEQlaN19lxmTOR0zkv0Z8e08G1VipyXpfP4+oBokC9VtkPk1kpm0g5xlwisUSBs9fAtYLxwYrPlKuuoG85KDDaTCe+g06Lgff3d5RrONZkw528i5mSt+AtHRsfc+OteqozpLmiXa/JNk0FXCbpKaP3hG9ZMH2BsX4GPPLUxb3KK2gweuFfgXmEdFLjpWApEnyxyjfDbEEyT35D6mVE3LBFVWSeeWYr17WNkfVzWzfQpF7p1P6zu4W/ySVbKSSuRV8icrXQY3jXyzFVZp08UH3hSIdxPJUeqMAVdkXZfRcj2VOSv5O4bJmq+Io8qQWx7GpZGtWnT03iaNv0msRI2Jwd/0x7QBy5tRvgEWLGCLGKTzY1DYrvERBkFc+OI2DsVQUHSIwg2s2ZmS5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