Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✨ Source Google-Ads: add incremental streams based on events #28970

Merged

Conversation

tolik0
Copy link
Contributor

@tolik0 tolik0 commented Aug 2, 2023

What

Resolve:

  • Add new streams: Change Status and Campaign Criterion
  • Implement Incremental sync and delete for Ad Group and Campaign Criterion streams

How

Incremental sync for Ad Group and Campaign Criterion streams is implemented using the Change Status stream. If state is empty sync is full refresh, otherwise updates are synced from change_status resource then updated records are synced using id and deleted records returned with empty fields.

Recommended reading order

  1. source-google-ads/source.py
  2. source-google-ads/streams.py

🚨 User Impact 🚨

No breaking changes

@tolik0 tolik0 linked an issue Aug 2, 2023 that may be closed by this pull request
@github-actions
Copy link
Contributor

github-actions bot commented Aug 2, 2023

Before Merging a Connector Pull Request

Wow! What a great pull request you have here! πŸŽ‰

To merge this PR, ensure the following has been done/considered for each connector added or updated:

  • PR name follows PR naming conventions
  • Breaking changes are considered. If a Breaking Change is being introduced, ensure an Airbyte engineer has created a Breaking Change Plan.
  • Connector version has been incremented in the Dockerfile and metadata.yaml according to our Semantic Versioning for Connectors guidelines
  • You've updated the connector's metadata.yaml file any other relevant changes, including a breakingChanges entry for major version bumps. See metadata.yaml docs
  • Secrets in the connector's spec are annotated with airbyte_secret
  • All documentation files are up to date. (README.md, bootstrap.md, docs.md, etc...)
  • Changelog updated in docs/integrations/<source or destination>/<name>.md with an entry for the new version. See changelog example
  • Migration guide updated in docs/integrations/<source or destination>/<name>-migrations.md with an entry for the new version, if the version is a breaking change. See migration guide example
  • If set, you've ensured the icon is present in the platform-internal repo. (Docs)

If the checklist is complete, but the CI check is failing,

  1. Check for hidden checklists in your PR description

  2. Toggle the github label checklist-action-run on/off to re-run the checklist CI.

@tolik0 tolik0 force-pushed the tolik0/source-google-ads/28204-epic-source-google-ads-to-ga branch from 6ffea1b to 86d55b6 Compare August 2, 2023 12:27
@tolik0 tolik0 force-pushed the tolik0/source-google-ads/28204-epic-source-google-ads-to-ga branch from 255c337 to d255428 Compare August 15, 2023 12:20
@tolik0 tolik0 force-pushed the tolik0/source-google-ads/28204-epic-source-google-ads-to-ga branch from 3afaa57 to 71de5c2 Compare August 23, 2023 15:23
@octavia-squidington-iii octavia-squidington-iii added the area/documentation Improvements or additions to documentation label Aug 23, 2023
@tolik0 tolik0 force-pushed the tolik0/source-google-ads/28204-epic-source-google-ads-to-ga branch from 45c9a0b to 26315fd Compare August 25, 2023 12:13
Copy link
Contributor

@sherifnada sherifnada left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @tolik0 πŸ‘‹πŸΌ I left inline comments about the PKs and FKs. But my main outstanding question is how IncrementalEvents are supposed to work

@tolik0 tolik0 changed the title Source Google-Ads: move to next releaseStage ✨ Source Google-Ads: add incremental streams based on events Sep 1, 2023
@tolik0 tolik0 force-pushed the tolik0/source-google-ads/28204-epic-source-google-ads-to-ga branch 3 times, most recently from a91e2a6 to 67ec032 Compare September 4, 2023 18:15
@tolik0 tolik0 requested a review from lazebnyi September 4, 2023 18:15
@tolik0 tolik0 force-pushed the tolik0/source-google-ads/28204-epic-source-google-ads-to-ga branch from b56e6ca to d3e264b Compare September 7, 2023 15:00
@tolik0 tolik0 marked this pull request as ready for review September 7, 2023 16:36
@github-actions
Copy link
Contributor

github-actions bot commented Sep 7, 2023

source-google-ads test report (commit 9f29c96d17) - ❌

⏲️ Total pipeline duration: 01mn51s

Step Result
Connector package install βœ…
Build source-google-ads docker image for platform linux/x86_64 βœ…
Unit tests ❌
Code format checks ❌
Validate airbyte-integrations/connectors/source-google-ads/metadata.yaml βœ…
Connector version semver check βœ…
Connector version increment check βœ…
QA checks βœ…

πŸ”— View the logs here

☁️ View runs for commit in Dagger Cloud

Please note that tests are only run on PR ready for review. Please set your PR to draft mode to not flood the CI engine and upstream service on following commits.
You can run the same pipeline locally on this branch with the airbyte-ci tool with the following command

airbyte-ci connectors --name=source-google-ads test

@github-actions
Copy link
Contributor

github-actions bot commented Sep 8, 2023

source-google-ads test report (commit 10dc3ce887) - ❌

⏲️ Total pipeline duration: 07mn21s

Step Result
Connector package install βœ…
Build source-google-ads docker image for platform linux/x86_64 βœ…
Unit tests βœ…
Acceptance tests ❌
Code format checks ❌
Validate airbyte-integrations/connectors/source-google-ads/metadata.yaml βœ…
Connector version semver check βœ…
Connector version increment check βœ…
QA checks βœ…

πŸ”— View the logs here

☁️ View runs for commit in Dagger Cloud

Please note that tests are only run on PR ready for review. Please set your PR to draft mode to not flood the CI engine and upstream service on following commits.
You can run the same pipeline locally on this branch with the airbyte-ci tool with the following command

airbyte-ci connectors --name=source-google-ads test

@tolik0 tolik0 requested review from a team as code owners September 8, 2023 16:16
@tolik0 tolik0 removed CDK Connector Development Kit connectors/source/postgres labels Sep 8, 2023
@github-actions
Copy link
Contributor

github-actions bot commented Sep 8, 2023

source-google-ads test report (commit cc82662b7d) - βœ…

⏲️ Total pipeline duration: 07mn58s

Step Result
Connector package install βœ…
Build source-google-ads docker image for platform linux/x86_64 βœ…
Unit tests βœ…
Acceptance tests βœ…
Code format checks βœ…
Validate airbyte-integrations/connectors/source-google-ads/metadata.yaml βœ…
Connector version semver check βœ…
Connector version increment check βœ…
QA checks βœ…

πŸ”— View the logs here

☁️ View runs for commit in Dagger Cloud

Please note that tests are only run on PR ready for review. Please set your PR to draft mode to not flood the CI engine and upstream service on following commits.
You can run the same pipeline locally on this branch with the airbyte-ci tool with the following command

airbyte-ci connectors --name=source-google-ads test

@github-actions
Copy link
Contributor

github-actions bot commented Sep 8, 2023

source-google-ads test report (commit 02654726a6) - βœ…

⏲️ Total pipeline duration: 02mn59s

Step Result
Connector package install βœ…
Build source-google-ads docker image for platform linux/x86_64 βœ…
Unit tests βœ…
Acceptance tests βœ…
Code format checks βœ…
Validate airbyte-integrations/connectors/source-google-ads/metadata.yaml βœ…
Connector version semver check βœ…
Connector version increment check βœ…
QA checks βœ…

πŸ”— View the logs here

☁️ View runs for commit in Dagger Cloud

Please note that tests are only run on PR ready for review. Please set your PR to draft mode to not flood the CI engine and upstream service on following commits.
You can run the same pipeline locally on this branch with the airbyte-ci tool with the following command

airbyte-ci connectors --name=source-google-ads test

@sherifnada sherifnada removed the request for review from a team September 8, 2023 21:01
@airbytehq airbytehq deleted a comment from github-actions bot Sep 14, 2023
@github-actions
Copy link
Contributor

source-google-ads test report (commit 277bbbfd4a) - βœ…

⏲️ Total pipeline duration: 11mn00s

Step Result
Connector package install βœ…
Build source-google-ads docker image for platform linux/x86_64 βœ…
Unit tests βœ…
Acceptance tests βœ…
Code format checks βœ…
Validate airbyte-integrations/connectors/source-google-ads/metadata.yaml βœ…
Connector version semver check βœ…
Connector version increment check βœ…
QA checks βœ…

πŸ”— View the logs here

☁️ View runs for commit in Dagger Cloud

Please note that tests are only run on PR ready for review. Please set your PR to draft mode to not flood the CI engine and upstream service on following commits.
You can run the same pipeline locally on this branch with the airbyte-ci tool with the following command

airbyte-ci connectors --name=source-google-ads test

@sherifnada
Copy link
Contributor

@tolik0 could you address the point about the 10k limit above?

From a user point of view, it's not an acceptable outcome to say that there will be data loss. If 10k is the maximum then we'll need to find a way around that e.g: make a request for data after date t and if it's 10k records then we make another request with date = max(records_returned_in_first_request) and so on and so forth

@tolik0
Copy link
Contributor Author

tolik0 commented Sep 15, 2023

@sherifnada I fixed 10k records for a day by decreasing the granularity of the cursor to microseconds. I also updated the corresponding documentation.

@tolik0 could you address the point about the 10k limit above?

From a user point of view, it's not an acceptable outcome to say that there will be data loss. If 10k is the maximum then we'll need to find a way around that e.g: make a request for data after date t and if it's 10k records then we make another request with date = max(records_returned_in_first_request) and so on and so forth

@katmarkham
Copy link
Contributor

Does this support : #11539 ?

@github-actions
Copy link
Contributor

source-google-ads test report (commit 2b915ff792) - ❌

⏲️ Total pipeline duration: 10mn41s

Step Result
Connector package install βœ…
Build source-google-ads docker image for platform linux/x86_64 βœ…
Unit tests βœ…
Acceptance tests ❌
Code format checks ❌
Validate airbyte-integrations/connectors/source-google-ads/metadata.yaml βœ…
Connector version semver check βœ…
Connector version increment check βœ…
QA checks βœ…

πŸ”— View the logs here

☁️ View runs for commit in Dagger Cloud

Please note that tests are only run on PR ready for review. Please set your PR to draft mode to not flood the CI engine and upstream service on following commits.
You can run the same pipeline locally on this branch with the airbyte-ci tool with the following command

airbyte-ci connectors --name=source-google-ads test

@github-actions
Copy link
Contributor

source-google-ads test report (commit aca1798d41) - ❌

⏲️ Total pipeline duration: 07mn13s

Step Result
Connector package install βœ…
Build source-google-ads docker image for platform linux/x86_64 βœ…
Unit tests βœ…
Acceptance tests βœ…
Code format checks ❌
Validate airbyte-integrations/connectors/source-google-ads/metadata.yaml βœ…
Connector version semver check βœ…
Connector version increment check βœ…
QA checks βœ…

πŸ”— View the logs here

☁️ View runs for commit in Dagger Cloud

Please note that tests are only run on PR ready for review. Please set your PR to draft mode to not flood the CI engine and upstream service on following commits.
You can run the same pipeline locally on this branch with the airbyte-ci tool with the following command

airbyte-ci connectors --name=source-google-ads test

@github-actions
Copy link
Contributor

source-google-ads test report (commit 5b34cfca13) - βœ…

⏲️ Total pipeline duration: 08mn06s

Step Result
Connector package install βœ…
Build source-google-ads docker image for platform linux/x86_64 βœ…
Unit tests βœ…
Acceptance tests βœ…
Code format checks βœ…
Validate airbyte-integrations/connectors/source-google-ads/metadata.yaml βœ…
Connector version semver check βœ…
Connector version increment check βœ…
QA checks βœ…

πŸ”— View the logs here

☁️ View runs for commit in Dagger Cloud

Please note that tests are only run on PR ready for review. Please set your PR to draft mode to not flood the CI engine and upstream service on following commits.
You can run the same pipeline locally on this branch with the airbyte-ci tool with the following command

airbyte-ci connectors --name=source-google-ads test

@airbytehq airbytehq deleted a comment from github-actions bot Sep 19, 2023
@airbytehq airbytehq deleted a comment from github-actions bot Sep 19, 2023
@github-actions
Copy link
Contributor

source-google-ads test report (commit f53a0506ed) - βœ…

⏲️ Total pipeline duration: 07mn17s

Step Result
Connector package install βœ…
Build source-google-ads docker image for platform linux/x86_64 βœ…
Unit tests βœ…
Acceptance tests βœ…
Code format checks βœ…
Validate airbyte-integrations/connectors/source-google-ads/metadata.yaml βœ…
Connector version semver check βœ…
Connector version increment check βœ…
QA checks βœ…

πŸ”— View the logs here

☁️ View runs for commit in Dagger Cloud

Please note that tests are only run on PR ready for review. Please set your PR to draft mode to not flood the CI engine and upstream service on following commits.
You can run the same pipeline locally on this branch with the airbyte-ci tool with the following command

airbyte-ci connectors --name=source-google-ads test

@tolik0 tolik0 requested review from sherifnada and removed request for sherifnada September 19, 2023 12:01
Copy link
Collaborator

@lazebnyi lazebnyi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@tolik0 tolik0 merged commit b2542d6 into master Sep 19, 2023
29 of 30 checks passed
@tolik0 tolik0 deleted the tolik0/source-google-ads/28204-epic-source-google-ads-to-ga branch September 19, 2023 12:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/connectors Connector related issues area/documentation Improvements or additions to documentation connectors/source/google-ads
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[EPIC] Source Google Ads to Silver
6 participants