From a28e6faef55aebba0dd04319b8e6b016a935e0cd Mon Sep 17 00:00:00 2001 From: Alexander Schaefer Date: Tue, 7 Nov 2017 12:43:45 +0100 Subject: [PATCH] use v11 reporting --- bingads_downloader/downloader.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/bingads_downloader/downloader.py b/bingads_downloader/downloader.py index 2221384..fead064 100644 --- a/bingads_downloader/downloader.py +++ b/bingads_downloader/downloader.py @@ -8,7 +8,7 @@ from bingads import (AuthorizationData, OAuthAuthorization, OAuthDesktopMobileAuthCodeGrant, OAuthTokenRequestException) -from bingads.reporting import ReportingServiceManager, time +from bingads.v11.reporting.reporting_service_manager import ReportingServiceManager, time from bingads.service_client import ServiceClient from bingads_downloader import config @@ -28,7 +28,7 @@ def __init__(self): self.client = super(BingReportClient, self).__init__(service='ReportingService', authorization_data=authorization_data, - environment='production', version='v9') + environment='production', version='v11') def download_data(): @@ -166,7 +166,8 @@ def submit_and_download(report_request, api_client, data_dir): data_dir: target directory of the files containing the reports """ - current_reporting_service_manager = ReportingServiceManager( + current_reporting_service_manager = \ + ReportingServiceManager( authorization_data=api_client.authorization_data, poll_interval_in_milliseconds=5000, environment='production',