Skip to content

Commit a28e6fa

Browse files
author
Alexander Schaefer
committed
use v11 reporting
1 parent 4c99cc0 commit a28e6fa

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

bingads_downloader/downloader.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
from bingads import (AuthorizationData, OAuthAuthorization, OAuthDesktopMobileAuthCodeGrant,
1010
OAuthTokenRequestException)
11-
from bingads.reporting import ReportingServiceManager, time
11+
from bingads.v11.reporting.reporting_service_manager import ReportingServiceManager, time
1212
from bingads.service_client import ServiceClient
1313

1414
from bingads_downloader import config
@@ -28,7 +28,7 @@ def __init__(self):
2828

2929
self.client = super(BingReportClient, self).__init__(service='ReportingService',
3030
authorization_data=authorization_data,
31-
environment='production', version='v9')
31+
environment='production', version='v11')
3232

3333

3434
def download_data():
@@ -166,7 +166,8 @@ def submit_and_download(report_request, api_client, data_dir):
166166
data_dir: target directory of the files containing the reports
167167
"""
168168

169-
current_reporting_service_manager = ReportingServiceManager(
169+
current_reporting_service_manager = \
170+
ReportingServiceManager(
170171
authorization_data=api_client.authorization_data,
171172
poll_interval_in_milliseconds=5000,
172173
environment='production',

0 commit comments

Comments
 (0)