-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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 support for multiple customer ids in specs #7547
Source Google Ads: Add support for multiple customer ids in specs #7547
Conversation
1975cd5
to
7a2b746
Compare
Hey @n0rritt do you mind sharing screenshot about integration tests from local |
@harshithmullapudi the unit and integration test logs are already included in the PR description as expandables, is that enough or would you need a screenshot of it running in Airflow web UI? |
airbyte-integrations/connectors/source-google-ads/source_google_ads/google_ads.py
Outdated
Show resolved
Hide resolved
airbyte-integrations/connectors/source-google-ads/source_google_ads/google_ads.py
Outdated
Show resolved
Hide resolved
airbyte-integrations/connectors/source-google-ads/source_google_ads/spec.json
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please, see comments
* also use more recent dates for integration tests
7a2b746
to
a401614
Compare
a401614
to
f8bdc5b
Compare
@yevhenii-ldv I've made the fixes according to your comments, could you have another look again please? |
@yevhenii-ldv is it a +1 from you ? |
}, | ||
"login_customer_id": { | ||
"type": "string", | ||
"title": "Login Customer ID", | ||
"description": "If your access to the customer account is through a manager account, this field is required and must be set to the customer ID of the manager account (10-digit number without dashes). More information about this field you can see <a href=\"https://developers.google.com/google-ads/api/docs/concepts/call-structure#cid\">here</a>" | ||
"description": "If your access to the customer account is through a manager account, this field is required and must be set to the customer ID of the manager account (10-digit number without dashes). More information about this field you can see <a href=\"https://developers.google.com/google-ads/api/docs/concepts/call-structure#cid\">here</a>", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you sure that for all of the listed Customer ID(s)
one specified Login Customer ID
will be suitable. Or will we need to make the `Customer Id => Login Customer ID" mapping?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had the same thought in the beginning but multiple (sub) customer accounts belong to one (manager) login_customer_id.
For another manager account a new connection should be created, otherwise it get's messy with the mapping.
https://developers.google.com/google-ads/api/docs/migration/login-customer-id
@n0rritt LGTM in general. Only one quastion to be sure. |
@yevhenii-ldv this does not seem to correctly take into account state logic for different user accounts |
@n0rritt, hello)
In case of change, we will need to update the logic of saving the state to the following:
But at the same time, preserve backward compatibility for users who have already started this connector and have an |
@yevhenii-ldv yes I can make another commit for state per account |
Hey @n0rritt did you get time to fix it ? |
Hey @n0rritt any updates on this ? |
@n0rritt I'll close this due to inactivity. If you want to return this work you can reopen the PR. |
What
Fixing issue 6437
How
Recommended reading order
source_google_ads/spec.json
source_google_ads/source.py
source_google_ads/google_ads.py
source_google_ads/streams.py
unit_tests/test_source.py
Pre-merge Checklist
Updating a connector
Community member or Airbyter
airbyte_secret
docs/integrations/source/google-ads.md
including changelog.Airbyter
If this is a community PR, the Airbyte engineer reviewing this PR is responsible for the below items.
/test connector=connectors/<name>
command is passing./publish
command described hereUnit test passed
Integration test passed