Skip to content

Commit

Permalink
🚨 🚨 Source Bing Ads: remove PKs from geographic performance reports (#…
Browse files Browse the repository at this point in the history
…31277)

Co-authored-by: katmarkham <40400595+katmarkham@users.noreply.github.com>
  • Loading branch information
davydov-d and katmarkham committed Oct 12, 2023
1 parent 9034271 commit 1a9e21f
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 7 deletions.
2 changes: 1 addition & 1 deletion airbyte-integrations/connectors/source-bing-ads/Dockerfile
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.2.3
LABEL io.airbyte.version=1.0.0
LABEL io.airbyte.name=airbyte/source-bing-ads
Expand Up @@ -11,7 +11,7 @@ data:
connectorSubtype: api
connectorType: source
definitionId: 47f25999-dd5e-4636-8c39-e7cea2453331
dockerImageTag: 0.2.3
dockerImageTag: 1.0.0
dockerRepository: airbyte/source-bing-ads
githubIssueLabel: source-bing-ads
icon: bingads.svg
Expand All @@ -29,5 +29,10 @@ data:
ab_internal:
sl: 200
ql: 400
releases:
breakingChanges:
1.0.0:
message: "Version 1.0.0 removes the primary keys from the geographic performance report streams. This will prevent the connector from loosing data in the incremental append+dedup sync mode because of deduplication and incorrect primary keys. A data reset and schema refresh of all the effected streams is required for the changes to take effect."
upgradeDeadline: "2023-10-25"
supportLevel: certified
metadataSpecVersion: "1.0"
Expand Up @@ -698,7 +698,8 @@ class GeographicPerformanceReport(PerformanceReportsMixin, BingAdsStream):
additional_fields: str = ""
cursor_field = "TimePeriod"
report_schema_name = "geographic_performance_report"
primary_key = [

report_columns = [
"AccountId",
"CampaignId",
"AdGroupId",
Expand All @@ -713,10 +714,6 @@ class GeographicPerformanceReport(PerformanceReportsMixin, BingAdsStream):
"DeviceOS",
"TopVsOther",
"BidMatchType",
]

report_columns = [
*primary_key,
"MetroArea",
"State",
"City",
Expand Down
10 changes: 10 additions & 0 deletions docs/integrations/sources/bing-ads-migrations.md
@@ -0,0 +1,10 @@
# Bing Ads Migration Guide

## Upgrading to 1.0.0

This version update only affects the geographic performance reports streams.

Version 1.0.0 prevents the data loss by removing the primary keys from the `GeographicPerformanceReportMonthly`, `GeographicPerformanceReportWeekly`, `GeographicPerformanceReportDaily`, `GeographicPerformanceReportHourly` streams.
Due to multiple records with the same primary key, users could experience data loss in the incremental append+dedup mode because of deduplication.

For the changes to take effect, please reset your data and refresh the stream schemas after you have applied the upgrade.
1 change: 1 addition & 0 deletions docs/integrations/sources/bing-ads.md
Expand Up @@ -123,6 +123,7 @@ The Bing Ads API limits the number of requests for all Microsoft Advertising cli

| Version | Date | Pull Request | Subject |
|:--------|:-----------|:---------------------------------------------------------------------------------------------------------------------------------|:---------------------------------------------------------------------------------------------------------------------------------------------|
| 1.0.0 | 2023-10-11 | [31277](https://github.com/airbytehq/airbyte/pull/31277) | Remove primary keys from the geographic performance reports. |
| 0.2.3 | 2023-09-28 | [30834](https://github.com/airbytehq/airbyte/pull/30834) | Wrap auth error with the config error. |
| 0.2.2 | 2023-09-27 | [30791](https://github.com/airbytehq/airbyte/pull/30791) | Fix missing fields for geographic performance reports. |
| 0.2.1 | 2023-09-04 | [30128](https://github.com/airbytehq/airbyte/pull/30128) | Add increasing download timeout if ReportingDownloadException occurs |
Expand Down

0 comments on commit 1a9e21f

Please sign in to comment.