Skip to content

Commit

Permalink
use v11 reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Schaefer committed Nov 7, 2017
1 parent 4c99cc0 commit a28e6fa
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions bingads_downloader/downloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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():
Expand Down Expand Up @@ -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',
Expand Down

0 comments on commit a28e6fa

Please sign in to comment.