Skip to content

Commit

Permalink
Source Amazon Ads: added adId to product report stream (#11660)
Browse files Browse the repository at this point in the history
* added adId to product report stream

* simplified removal of adId

* removed duplicate comment

* Bumped dockerfile version

* bump connector version

Co-authored-by: marcosmarxm <marcosmarxm@gmail.com>
  • Loading branch information
agroh1 and marcosmarxm authored Apr 26, 2022
1 parent 8dc704f commit 3414656
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
- name: Amazon Ads
sourceDefinitionId: c6b0a29e-1da9-4512-9002-7bfd0cba2246
dockerRepository: airbyte/source-amazon-ads
dockerImageTag: 0.1.5
dockerImageTag: 0.1.6
documentationUrl: https://docs.airbyte.io/integrations/sources/amazon-ads
icon: amazonads.svg
sourceType: api
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
supportsNormalization: false
supportsDBT: false
supported_destination_sync_modes: []
- dockerImage: "airbyte/source-amazon-ads:0.1.5"
- dockerImage: "airbyte/source-amazon-ads:0.1.6"
spec:
documentationUrl: "https://docs.airbyte.io/integrations/sources/amazon-ads"
connectionSpecification:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ RUN pip install .
ENV AIRBYTE_ENTRYPOINT "python /airbyte/integration_code/main.py"
ENTRYPOINT ["python", "/airbyte/integration_code/main.py"]

LABEL io.airbyte.version=0.1.5
LABEL io.airbyte.version=0.1.6
LABEL io.airbyte.name=airbyte/source-amazon-ads
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@
"campaignId",
"adGroupName",
"adGroupId",
"adId",
"impressions",
"clicks",
"cost",
Expand Down Expand Up @@ -156,6 +157,7 @@
"adGroupId",
"keywordId",
"keywordText",
"adId",
"asin",
"otherAsin",
"sku",
Expand All @@ -179,6 +181,7 @@
"campaignId",
"adGroupName",
"adGroupId",
"adId",
"asin",
"otherAsin",
"sku",
Expand Down Expand Up @@ -262,4 +265,9 @@ def _get_init_report_body(self, report_date: str, record_type: str, profile):
if profile.accountInfo.type == "vendor":
metrics_list = copy(metrics_list)
metrics_list.remove("sku")

# adId is automatically added to the report by amazon and requesting adId causes an amazon error
if "adId" in metrics_list:
metrics_list.remove("adId")

return {**body, "metrics": ",".join(metrics_list)}
1 change: 1 addition & 0 deletions docs/integrations/sources/amazon-ads.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ Start date used for generating reports starting from the specified start date. S

| Version | Date | Pull Request | Subject |
| :--- | :--- | :--- | :--- |
| `0.1.6` | 2022-04-20 | [\#11659](https://github.com/airbytehq/airbyte/pull/11659) | Add adId to products report |
| `0.1.5` | 2022-04-08 | [\#11430](https://github.com/airbytehq/airbyte/pull/11430) | `Added support OAuth2.0` |
| `0.1.4` | 2022-02-21 | [\#10513](https://github.com/airbytehq/airbyte/pull/10513) | `Increasing REPORT_WAIT_TIMEOUT for supporting report generation which takes longer time ` |
| `0.1.3` | 2021-12-28 | [\#8388](https://github.com/airbytehq/airbyte/pull/8388) | `Add retry if recoverable error occured for reporting stream processing` |
Expand Down

0 comments on commit 3414656

Please sign in to comment.