Skip to content

Commit

Permalink
Import Error
Browse files Browse the repository at this point in the history
  • Loading branch information
Farhan Ahmed committed Jul 19, 2023
1 parent b428f7b commit 78f441d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions GoogleAds/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def __init__(self, region="anywhere", proxy=None):
self.headers = HEADERS
#proxy config
self.proxy = proxy
if not proxy:
if proxy:
self.reqs.proxies.update(proxy)

self.r_check = True
Expand All @@ -63,7 +63,7 @@ def refresh_session(self, proxy=None):
"""Refresh Session cookies"""
self.reqs = requests.Session()
self.get_cookies()
if not proxy:
if proxy:
self.proxy = proxy
self.reqs.proxies.update(self.proxy)

Expand Down

0 comments on commit 78f441d

Please sign in to comment.