Skip to content

Commit

Permalink
ref(source-amazon-ads): bump cdk to v5 (#47940)
Browse files Browse the repository at this point in the history
Signed-off-by: Artem Inzhyyants <[email protected]>
Co-authored-by: maxi297 <[email protected]>
Co-authored-by: Natalie Kwong <[email protected]>
  • Loading branch information
3 people authored Nov 1, 2024
1 parent 57f17ea commit 412a424
Show file tree
Hide file tree
Showing 60 changed files with 1,707 additions and 830 deletions.
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"documentationUrl": "https://docs.airbyte.com/integrations/sources/amazon-ads",
"connectionSpecification": {
"title": "Amazon Ads Spec",
"title": "Source Amazon Ads",
"type": "object",
"properties": {
"auth_type": {
"title": "Auth Type",
"default": "oauth2.0",
"const": "oauth2.0",
"order": 0,
"type": "string"
Expand Down Expand Up @@ -34,18 +34,18 @@
"region": {
"title": "Region",
"description": "Region to pull data from (EU/NA/FE). See <a href=\"https://advertising.amazon.com/API/docs/en-us/info/api-overview#api-endpoints\">docs</a> for more details.",
"enum": ["NA", "EU", "FE"],
"type": "string",
"default": "NA",
"order": 4
"enum": ["NA", "EU", "FE"],
"order": 4,
"type": "string"
},
"start_date": {
"title": "Start Date",
"description": "The Start date for collecting reports, should not be more than 60 days in the past. In YYYY-MM-DD format",
"examples": ["2022-10-10", "2022-10-22"],
"pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$",
"order": 5,
"type": "string",
"pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$",
"format": "date"
},
"profiles": {
Expand All @@ -69,13 +69,16 @@
"state_filter": {
"title": "State Filter",
"description": "Reflects the state of the Display, Product, and Brand Campaign streams as enabled, paused, or archived. If you do not populate this field, it will be ignored completely.",
"default": [],
"order": 8,
"type": "array",
"items": {
"type": "string",
"enum": ["enabled", "paused", "archived"]
"title": "StateFilterEnum",
"description": "An enumeration.",
"enum": ["enabled", "paused", "archived"],
"type": "string"
},
"type": "array",
"uniqueItems": true,
"order": 8
"uniqueItems": true
},
"look_back_window": {
"title": "Look Back Window",
Expand All @@ -88,8 +91,12 @@
"report_record_types": {
"title": "Report Record Types",
"description": "Optional configuration which accepts an array of string of record types. Leave blank for default behaviour to pull all report types. Use this config option only if you want to pull specific report type(s). See <a href=\"https://advertising.amazon.com/API/docs/en-us/reporting/v2/report-types\">docs</a> for more details",
"default": [],
"order": 10,
"type": "array",
"items": {
"type": "string",
"title": "ReportRecordTypeEnum",
"description": "An enumeration.",
"enum": [
"adGroups",
"asins",
Expand All @@ -99,16 +106,17 @@
"keywords",
"productAds",
"targets"
]
],
"type": "string"
},
"type": "array",
"uniqueItems": true,
"order": 10
"uniqueItems": true
}
},
"required": ["client_id", "client_secret", "refresh_token"],
"additionalProperties": true
"required": ["client_id", "client_secret", "refresh_token"]
},
"documentationUrl": "https://docs.airbyte.com/integrations/sources/amazon-ads",
"supportsNormalization": false,
"supportsDBT": false,
"advanced_auth": {
"auth_flow_type": "oauth2.0",
"predicate_key": ["auth_type"],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ data:
connectorSubtype: api
connectorType: source
definitionId: c6b0a29e-1da9-4512-9002-7bfd0cba2246
dockerImageTag: 6.0.0
dockerImageTag: 6.1.0
dockerRepository: airbyte/source-amazon-ads
documentationUrl: https://docs.airbyte.com/integrations/sources/amazon-ads
githubIssueLabel: source-amazon-ads
Expand Down
624 changes: 541 additions & 83 deletions airbyte-integrations/connectors/source-amazon-ads/poetry.lock

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ requires = [ "poetry-core>=1.0.0",]
build-backend = "poetry.core.masonry.api"

[tool.poetry]
version = "6.0.0"
version = "6.1.0"
name = "source-amazon-ads"
description = "Source implementation for Amazon Ads."
authors = [ "Airbyte <[email protected]>",]
Expand All @@ -16,15 +16,14 @@ repository = "https://github.com/airbytehq/airbyte"
include = "source_amazon_ads"

[tool.poetry.dependencies]
python = "^3.9,<3.12"
airbyte-cdk = "0.90.0"
pendulum = "==2.1.2"
python = "^3.10,<3.12"
airbyte-cdk = "^5"

[tool.poetry.scripts]
source-amazon-ads = "source_amazon_ads.run:run"

[tool.poetry.group.dev.dependencies]
responses = "^0.23.1"
responses = "^0.25"
freezegun = "*"
requests-mock = "*"
pytest-mock = "*"

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,9 @@
from airbyte_cdk.entrypoint import launch
from source_amazon_ads import SourceAmazonAds
from source_amazon_ads.config_migrations import MigrateStartDate
from source_amazon_ads.declarative_source_adapter import DeclarativeSourceAdapter


def run():
source = DeclarativeSourceAdapter(source=SourceAmazonAds())
source = SourceAmazonAds()
MigrateStartDate.migrate(sys.argv[1:], source)
launch(source, sys.argv[1:])

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,118 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"date": {
"type": ["null", "string"]
},
"brandName": {
"type": ["null", "string"]
},
"marketplace": {
"type": ["null", "string"]
},
"campaignId": {
"type": ["null", "string"]
},
"productAsin": {
"type": ["null", "string"]
},
"productConversionType": {
"type": ["null", "string"]
},
"advertiserName": {
"type": ["null", "string"]
},
"adGroupId": {
"type": ["null", "string"]
},
"creativeId": {
"type": ["null", "string"]
},
"productName": {
"type": ["null", "string"]
},
"productCategory": {
"type": ["null", "string"]
},
"productSubcategory": {
"type": ["null", "string"]
},
"productGroup": {
"type": ["null", "string"]
},
"publisher": {
"type": ["null", "string"]
},
"Click-throughs": {
"type": ["null", "string"]
},
"attributedDetailPageViewsClicks14d": {
"type": ["null", "string"]
},
"attributedAddToCartClicks14d": {
"type": ["null", "string"]
},
"attributedPurchases14d": {
"type": ["null", "string"]
},
"unitsSold14d": {
"type": ["null", "string"]
},
"attributedSales14d": {
"type": ["null", "string"]
},
"attributedTotalDetailPageViewsClicks14d": {
"type": ["null", "string"]
},
"attributedTotalAddToCartClicks14d": {
"type": ["null", "string"]
},
"attributedTotalPurchases14d": {
"type": ["null", "string"]
},
"totalUnitsSold14d": {
"type": ["null", "string"]
},
"totalAttributedSales14d": {
"type": ["null", "string"]
},
"brb_bonus_amount": {
"type": ["null", "string"]
},
"brandHaloDetailPageViewsClicks14d": {
"type": ["null", "string"]
},
"brandHaloAttributedAddToCartClicks14d": {
"type": ["null", "string"]
},
"brandHaloAttributedPurchases14d": {
"type": ["null", "string"]
},
"brandHaloUnitsSold14d": {
"type": ["null", "string"]
},
"brandHaloAttributedSales14d": {
"type": ["null", "string"]
},
"attributedNewToBrandPurchases14d": {
"type": ["null", "string"]
},
"attributedNewToBrandUnitsSold14d": {
"type": ["null", "string"]
},
"attributedNewToBrandSales14d": {
"type": ["null", "string"]
},
"brandHaloNewToBrandPurchases14d": {
"type": ["null", "string"]
},
"brandHaloNewToBrandUnitsSold14d": {
"type": ["null", "string"]
},
"brandHaloNewToBrandSales14d": {
"type": ["null", "string"]
}
},
"title": "attribution_report_performance_adgroup",
"type": ["null", "object"]
}
Loading

0 comments on commit 412a424

Please sign in to comment.