diff --git a/bingads/authorization.py b/bingads/authorization.py index 8f093e45..87389322 100644 --- a/bingads/authorization.py +++ b/bingads/authorization.py @@ -646,7 +646,8 @@ def get_access_token(**kwargs): if 'client_secret' in kwargs and kwargs['client_secret'] is None: del kwargs['client_secret'] - r = requests.post(_UriOAuthService.AUTH_TOKEN_URI[(kwargs['environment'], kwargs['requireliveconnect'])], kwargs, verify=True) + # default timeout set to 300 secs + r = requests.post(_UriOAuthService.AUTH_TOKEN_URI[(kwargs['environment'], kwargs['requireliveconnect'])], kwargs, verify=True, timeout=300) try: r.raise_for_status() except Exception: