1
0
mirror of synced 2025-12-29 09:03:46 -05:00
Files
airbyte/airbyte-integrations/connectors/source-google-ads/setup.py
augan-rymkhan 359fcd8011 Source Google Ads: handle page token expired exception (#9812)
* dynamic date range

* raise exception if exites the cycle without error

* if range days is 1 already do not retry

* added unit tests

* added comments

* added comments

* common mock classes are moved to common module

* change read_records

* refactored get_date_params

* handle corner case

* added parse_dates function

* added test_streams

* check mock calls

* fix unit tests for chunk date range refactoring

* removed commented codes

* remove commented line

* refactor test_streams

* refactor CustomQuery.get_query

* remove TODO

* deleted unused json

* format

* fix chunk_date_range

* added docstring

* set range_days to 15 for ShoppingPerformanceReport

* refactor chunk_date_range

* format code 2

* call parent read_records method

* add return type in get_date_params

* change e to exception

* set start_date as end_date

* log page token has expired

* bump version

* updated spec and def yaml

Co-authored-by: auganbay <auganenu@gmail.com>
2022-02-04 22:48:58 +06:00

24 lines
618 B
Python

#
# Copyright (c) 2021 Airbyte, Inc., all rights reserved.
#
from setuptools import find_packages, setup
MAIN_REQUIREMENTS = ["airbyte-cdk~=0.1", "google-ads==14.1.0", "pendulum"]
TEST_REQUIREMENTS = ["pytest~=6.1", "pytest-mock", "freezegun"]
setup(
name="source_google_ads",
description="Source implementation for Google Ads.",
author="Airbyte",
author_email="contact@airbyte.io",
packages=find_packages(),
install_requires=MAIN_REQUIREMENTS,
package_data={"": ["*.json", "schemas/*.json", "schemas/shared/*.json"]},
extras_require={
"tests": TEST_REQUIREMENTS,
},
)