Skip to content

Commit

Permalink
Source Google Ads: Convert to airbyte-lib (#34007)
Browse files Browse the repository at this point in the history
  • Loading branch information
Joe Reuter authored Jan 16, 2024
1 parent 5306466 commit dad53b7
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 10 deletions.
11 changes: 2 additions & 9 deletions airbyte-integrations/connectors/source-google-ads/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,7 @@
# Copyright (c) 2023 Airbyte, Inc., all rights reserved.
#


import sys

from airbyte_cdk.entrypoint import launch
from source_google_ads import SourceGoogleAds
from source_google_ads.config_migrations import MigrateCustomQuery
from source_google_ads.run import run

if __name__ == "__main__":
source = SourceGoogleAds()
MigrateCustomQuery.migrate(sys.argv[1:], source)
launch(source, sys.argv[1:])
run()
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ data:
connectorSubtype: api
connectorType: source
definitionId: 253487c0-2246-43ba-a21f-5116b20a2c50
dockerImageTag: 3.3.0
dockerImageTag: 3.3.1
dockerRepository: airbyte/source-google-ads
documentationUrl: https://docs.airbyte.com/integrations/sources/google-ads
githubIssueLabel: source-google-ads
Expand Down
5 changes: 5 additions & 0 deletions airbyte-integrations/connectors/source-google-ads/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@
TEST_REQUIREMENTS = ["pytest~=6.1", "pytest-mock", "freezegun", "requests-mock"]

setup(
entry_points={
"console_scripts": [
"source-google-ads=source_google_ads.run:run",
],
},
name="source_google_ads",
description="Source implementation for Google Ads.",
author="Airbyte",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#
# Copyright (c) 2023 Airbyte, Inc., all rights reserved.
#


import sys

from airbyte_cdk.entrypoint import launch
from source_google_ads import SourceGoogleAds
from source_google_ads.config_migrations import MigrateCustomQuery


def run():
source = SourceGoogleAds()
MigrateCustomQuery.migrate(sys.argv[1:], source)
launch(source, sys.argv[1:])
1 change: 1 addition & 0 deletions docs/integrations/sources/google-ads.md
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,7 @@ Due to a limitation in the Google Ads API which does not allow getting performan

| Version | Date | Pull Request | Subject |
|:---------|:-----------|:---------------------------------------------------------|:-------------------------------------------------------------------------------------------------------------------------------------|
| `3.3.1` | 2024-01-16 | [34007](https://github.com/airbytehq/airbyte/pull/34007) | prepare for airbyte-lib |
| `3.3.0` | 2024-01-12 | [34212](https://github.com/airbytehq/airbyte/pull/34212) | Remove metric from query in Ad Group stream for non-manager account |
| `3.2.1` | 2024-01-12 | [34200](https://github.com/airbytehq/airbyte/pull/34200) | Disable raising error for not enabled accounts |
| `3.2.0` | 2024-01-09 | [33707](https://github.com/airbytehq/airbyte/pull/33707) | Add possibility to sync all connected accounts |
Expand Down

0 comments on commit dad53b7

Please sign in to comment.