From 611ed11ed9d65317e6819c91e74e345f3a875eaf Mon Sep 17 00:00:00 2001 From: Denys Davydov Date: Mon, 30 Jan 2023 20:07:39 +0200 Subject: [PATCH] #1332 source amazon ads: remove unused imports --- .../connectors/source-amazon-ads/Dockerfile | 2 +- .../source-amazon-ads/source_amazon_ads/schemas/common.py | 1 - .../streams/report_streams/display_report.py | 8 +------- 3 files changed, 2 insertions(+), 9 deletions(-) diff --git a/airbyte-integrations/connectors/source-amazon-ads/Dockerfile b/airbyte-integrations/connectors/source-amazon-ads/Dockerfile index 630c894b5326..1c1d83c84e2a 100644 --- a/airbyte-integrations/connectors/source-amazon-ads/Dockerfile +++ b/airbyte-integrations/connectors/source-amazon-ads/Dockerfile @@ -13,5 +13,5 @@ ENV AIRBYTE_ENTRYPOINT "python /airbyte/integration_code/main.py" ENTRYPOINT ["python", "/airbyte/integration_code/main.py"] -LABEL io.airbyte.version=0.1.28 +LABEL io.airbyte.version=0.1.29 LABEL io.airbyte.name=airbyte/source-amazon-ads diff --git a/airbyte-integrations/connectors/source-amazon-ads/source_amazon_ads/schemas/common.py b/airbyte-integrations/connectors/source-amazon-ads/source_amazon_ads/schemas/common.py index 598f5bdde75c..23a06dad6801 100644 --- a/airbyte-integrations/connectors/source-amazon-ads/source_amazon_ads/schemas/common.py +++ b/airbyte-integrations/connectors/source-amazon-ads/source_amazon_ads/schemas/common.py @@ -2,7 +2,6 @@ # Copyright (c) 2022 Airbyte, Inc., all rights reserved. # -from datetime import datetime from decimal import Decimal from typing import Any, Dict, Iterable, Type diff --git a/airbyte-integrations/connectors/source-amazon-ads/source_amazon_ads/streams/report_streams/display_report.py b/airbyte-integrations/connectors/source-amazon-ads/source_amazon_ads/streams/report_streams/display_report.py index 3069942bf2fa..24e2df3ad805 100644 --- a/airbyte-integrations/connectors/source-amazon-ads/source_amazon_ads/streams/report_streams/display_report.py +++ b/airbyte-integrations/connectors/source-amazon-ads/source_amazon_ads/streams/report_streams/display_report.py @@ -165,13 +165,7 @@ } -METRICS_TYPE_TO_ID_MAP = { - "campaigns": "campaignId", - "adGroups": "adGroupId", - "productAds": "adId", - "targets": "targetId", - "asins": "asin" -} +METRICS_TYPE_TO_ID_MAP = {"campaigns": "campaignId", "adGroups": "adGroupId", "productAds": "adId", "targets": "targetId", "asins": "asin"} class Tactics(str, Enum):