- Notifications
You must be signed in to change notification settings - Fork 4.9k
🎉 Source Google Ads: add *_label streams #11221
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
Conversation
8e3d050 to 92db4e5 Compare | /test connector=connectors/source-google-ads |
| /test connector=connectors/source-google-ads
|
| /test connector=connectors/source-google-ads |
| /test connector=connectors/source-google-ads
|
| * [keyword](https://developers.google.com/google-ads/api/fields/v8/keyword_view) | ||
| * [geographic](https://developers.google.com/google-ads/api/fields/v8/geographic_view) | ||
| | ||
| Note that `ad_groups`, `ad_group_ads`, and `campaigns` contain a `labels` field, which should be joined against their respective `*_labels` streams if you want to view the actual labels. |
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.
@misteryeo does this sentence sound good to you? (this is to address #10662 )
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.
could you indicate the join field?
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.
yep, done
| * [keyword](https://developers.google.com/google-ads/api/fields/v8/keyword_view) | ||
| * [geographic](https://developers.google.com/google-ads/api/fields/v8/geographic_view) | ||
| | ||
| Note that `ad_groups`, `ad_group_ads`, and `campaigns` contain a `labels` field, which should be joined against their respective `*_labels` streams if you want to view the actual labels. |
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.
could you indicate the join field?
airbyte-integrations/connectors/source-google-ads/source_google_ads/streams.py Outdated Show resolved Hide resolved
| /publish connector=connectors/source-google-ads |
| /publish connector=connectors/source-google-ads
|
What
Closes #10662
These streams tie together the label IDs with their actual names; users can sync these streams and then join them downstream. GAQL makes it a real pain to do that join (we'd have to do it ourselves in Python because they don't attribute the
*_labelresources to their corresponding tables).For example, the
ad_groupsstream might output records like{"ad_group.labels":["customers/4651612872/labels/21585034471"], ....}.ad_group_labelshas records that look like this:{ "ad_group.resource_name": "customers/4651612872/adGroups/123273719655", "ad_group_label.resource_name": "customers/4651612872/adGroupLabels/123273719655~21585034471", "label.name": "edgao-example-label", "label.resource_name": "customers/4651612872/labels/21585034471" }Users would be expected to join these two streams together in order to use attach
label.namefield to thead_grouprecords.Recommended reading order
*.jsonstreams.pysource.py+google_ads.pytest_source.py🚨 User Impact 🚨
nope
Pre-merge Checklist
Expand the relevant checklist and delete the others.
Community member or Airbyter
airbyte_secret./gradlew :airbyte-integrations:connectors:<name>:integrationTest.README.mdbootstrap.md. See description and examplesdocs/integrations/<source or destination>/<name>.mdincluding changelog. See changelog exampleAirbyter
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/publishcommand described here