Skip to content

Source Bing Ads: add fields to schema #20005

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

Merged
merged 20 commits into from
Dec 7, 2022

Conversation

LuliRib
Copy link
Contributor

@LuliRib LuliRib commented Dec 1, 2022

added field keyword to bing ads keyword_performance_report_daily

added field segments.device to google ads keyword_report

@CLAassistant
Copy link

CLAassistant commented Dec 1, 2022

CLA assistant check
All committers have signed the CLA.

@marcosmarxm
Copy link
Member

marcosmarxm commented Dec 2, 2022

/test connector=connectors/source-bing-ads

🕑 connectors/source-bing-ads https://github.com/airbytehq/airbyte/actions/runs/3603835643
✅ connectors/source-bing-ads https://github.com/airbytehq/airbyte/actions/runs/3603835643
Python tests coverage:

Name                          Stmts   Miss  Cover
-------------------------------------------------
source_bing_ads/__init__.py       2      0   100%
source_bing_ads/source.py       260      9    97%
source_bing_ads/cache.py         18      1    94%
source_bing_ads/reports.py      133     17    87%
source_bing_ads/client.py        93     14    85%
-------------------------------------------------
TOTAL                           506     41    92%
	 Name                                                 Stmts   Miss  Cover   Missing
	 ----------------------------------------------------------------------------------
	 source_acceptance_test/base.py                          12      4    67%   16-19
	 source_acceptance_test/config.py                       140      5    96%   87, 93, 238, 242-243
	 source_acceptance_test/conftest.py                     199     93    53%   35, 41-43, 48, 53, 59, 65, 71, 77-79, 98, 103-105, 111-113, 119-120, 125-126, 131, 137, 146-155, 161-166, 181, 205, 236, 242, 250-255, 263-268, 276-289, 294-300, 307-318, 325-341
	 source_acceptance_test/plugin.py                        69     25    64%   22-23, 31, 36, 120-140, 144-148
	 source_acceptance_test/tests/test_core.py              398    111    72%   53, 58, 87-95, 100-107, 111-112, 116-117, 299, 337-354, 363-371, 375-380, 386, 419-424, 462-469, 512-514, 517, 582-590, 602-605, 610, 666-667, 673, 676, 712-722, 735-760
	 source_acceptance_test/tests/test_incremental.py       158     14    91%   52-59, 64-77, 240
	 source_acceptance_test/utils/asserts.py                 39      2    95%   62-63
	 source_acceptance_test/utils/common.py                  94     10    89%   16-17, 32-38, 72, 75
	 source_acceptance_test/utils/compare.py                 62     23    63%   21-51, 68, 97-99
	 source_acceptance_test/utils/connector_runner.py       112     50    55%   23-26, 32, 36, 39-68, 71-73, 76-78, 81-83, 86-88, 91-93, 96-114, 148-150
	 source_acceptance_test/utils/json_schema_helper.py     107     13    88%   30-31, 38, 41, 65-68, 96, 120, 192-194
	 ----------------------------------------------------------------------------------
	 TOTAL                                                 1569    350    78%

Build Passed

Test summary info:

=========================== short test summary info ============================
SKIPPED [1] ../usr/local/lib/python3.9/site-packages/source_acceptance_test/plugin.py:63: Skipping TestIncremental.test_two_sequential_reads: not found in the config.
============ 29 passed, 1 skipped, 29 warnings in 652.23s (0:10:52) ============

@marcosmarxm
Copy link
Member

@LuliRib can you bump the dockerfile version and documentation changelog too?

@LuliRib
Copy link
Contributor Author

LuliRib commented Dec 2, 2022 via email

@marcosmarxm marcosmarxm changed the title Add fields to schema Source Bing Ads: add fields to schema Dec 2, 2022
@marcosmarxm
Copy link
Member

marcosmarxm commented Dec 2, 2022

/test connector=connectors/source-google-ads

🕑 connectors/source-google-ads https://github.com/airbytehq/airbyte/actions/runs/3604819499
❌ connectors/source-google-ads https://github.com/airbytehq/airbyte/actions/runs/3604819499
🐛 https://gradle.com/s/2oe5fplnzz3cw

Build Failed

Test summary info:

=========================== short test summary info ============================
FAILED test_core.py::TestBasicRead::test_read[inputs0] - docker.errors.Contai...
FAILED test_full_refresh.py::TestFullRefresh::test_sequential_reads[inputs0]
SKIPPED [1] ../usr/local/lib/python3.9/site-packages/source_acceptance_test/plugin.py:63: Skipping TestIncremental.test_two_sequential_reads: not found in the config.
============= 2 failed, 28 passed, 1 skipped in 111.68s (0:01:51) ==============

@LuliRib
Copy link
Contributor Author

LuliRib commented Dec 5, 2022

Hi @marcosmarxm, first of all, I´m grateful for your help.
I saw bing-ads test passed.
I talked to google-ads api team and we figured out the problem with google ads. The segments.device is not compatible with
"metrics.historical_quality_score". Can we just delete it from the schema?
If you can please help me a bit more with it, I need it urgently..
And again, thank you

deleted "metrics.historical_quality_score" which is not compatible with segments.device 
This was verified by the google ads team
@LuliRib LuliRib requested a review from marcosmarxm December 5, 2022 12:36
@sajarin sajarin added internal and removed bounty labels Dec 5, 2022
@sh4sh
Copy link
Contributor

sh4sh commented Dec 6, 2022

/test connector=connectors/source-google-ads

🕑 connectors/source-google-ads https://github.com/airbytehq/airbyte/actions/runs/3631123416
✅ connectors/source-google-ads https://github.com/airbytehq/airbyte/actions/runs/3631123416
Python tests coverage:

Name                                       Stmts   Miss  Cover
--------------------------------------------------------------
source_google_ads/models.py                   18      0   100%
source_google_ads/__init__.py                  2      0   100%
source_google_ads/google_ads.py               68     10    85%
source_google_ads/streams.py                 165     26    84%
source_google_ads/source.py                   86     24    72%
source_google_ads/custom_query_stream.py      75     46    39%
--------------------------------------------------------------
TOTAL                                        414    106    74%
Name                                       Stmts   Miss  Cover
--------------------------------------------------------------
source_google_ads/models.py                   18      0   100%
source_google_ads/__init__.py                  2      0   100%
source_google_ads/streams.py                 165      8    95%
source_google_ads/source.py                   86      5    94%
source_google_ads/custom_query_stream.py      75      6    92%
source_google_ads/google_ads.py               68     12    82%
--------------------------------------------------------------
TOTAL                                        414     31    93%
	 Name                                                 Stmts   Miss  Cover   Missing
	 ----------------------------------------------------------------------------------
	 source_acceptance_test/base.py                          12      4    67%   16-19
	 source_acceptance_test/config.py                       140      5    96%   87, 93, 238, 242-243
	 source_acceptance_test/conftest.py                     208     92    56%   36, 42-44, 49, 54, 77, 83, 89-91, 110, 115-117, 123-125, 131-132, 137-138, 143, 149, 158-167, 173-178, 193, 217, 248, 254, 262-267, 275-280, 288-301, 306-312, 319-330, 337-353
	 source_acceptance_test/plugin.py                        69     25    64%   22-23, 31, 36, 120-140, 144-148
	 source_acceptance_test/tests/test_core.py              398    111    72%   53, 58, 87-95, 100-107, 111-112, 116-117, 299, 337-354, 363-371, 375-380, 386, 419-424, 462-469, 512-514, 517, 582-590, 602-605, 610, 666-667, 673, 676, 712-722, 735-760
	 source_acceptance_test/tests/test_incremental.py       158     14    91%   52-59, 64-77, 240
	 source_acceptance_test/utils/asserts.py                 39      2    95%   62-63
	 source_acceptance_test/utils/common.py                  94     10    89%   16-17, 32-38, 72, 75
	 source_acceptance_test/utils/compare.py                 62     23    63%   21-51, 68, 97-99
	 source_acceptance_test/utils/connector_runner.py       133     33    75%   24-27, 46-47, 50-54, 57-58, 73-75, 78-80, 83-85, 88-90, 93-95, 124-125, 159-161, 208
	 source_acceptance_test/utils/json_schema_helper.py     107     13    88%   30-31, 38, 41, 65-68, 96, 120, 192-194
	 ----------------------------------------------------------------------------------
	 TOTAL                                                 1599    332    79%

Build Passed

Test summary info:

=========================== short test summary info ============================
SKIPPED [1] ../usr/local/lib/python3.9/site-packages/source_acceptance_test/plugin.py:63: Skipping TestIncremental.test_two_sequential_reads: not found in the config.
================== 30 passed, 1 skipped in 1048.72s (0:17:28) ==================

@marcosmarxm
Copy link
Member

@LuliRib can you split the contribution into 2 PRs one for Bing Ads and other for Google Ads? I'll ask the connector team to check your proposal of changes.

@LuliRib
Copy link
Contributor Author

LuliRib commented Dec 7, 2022

@marcosmarxm hi, not sure how to do it, keeping the data, tests of each source

@octavia-squidington-iv octavia-squidington-iv added the area/documentation Improvements or additions to documentation label Dec 7, 2022
@marcosmarxm
Copy link
Member

@LuliRib please open a new branch/PR to make the changes to Google Ads.

@marcosmarxm
Copy link
Member

@LuliRib because this connector is GA I'd requested to our connector team to make the final review before publishing the changes

@LuliRib
Copy link
Contributor Author

LuliRib commented Dec 7, 2022 via email

@LuliRib
Copy link
Contributor Author

LuliRib commented Dec 7, 2022 via email

added property additionalProperties: true to keyword field
I think now it´s what you asked.
Thank you
@LuliRib LuliRib requested a review from bazarnov December 7, 2022 07:04
@LuliRib
Copy link
Contributor Author

LuliRib commented Dec 7, 2022

@bazarnov, thank you so much! What should I do next?

@bazarnov
Copy link
Collaborator

bazarnov commented Dec 7, 2022

@marcosmarxm could you please assist here?

@marcosmarxm
Copy link
Member

marcosmarxm commented Dec 7, 2022

/publish connector=connectors/source-bing-ads

🕑 Publishing the following connectors:
connectors/source-bing-ads
https://github.com/airbytehq/airbyte/actions/runs/3640521127


Connector Did it publish? Were definitions generated?
connectors/source-bing-ads

if you have connectors that successfully published but failed definition generation, follow step 4 here ▶️

@marcosmarxm marcosmarxm merged commit f328706 into airbytehq:master Dec 7, 2022
@LuliRib LuliRib deleted the add-fields-to-schema branch December 7, 2022 16:30
@LuliRib
Copy link
Contributor Author

LuliRib commented Dec 7, 2022

@bazarnov , @marcosmarxm I receive ONLY null values in the new keyword field. Is there a way you could check it?

@tomasx
Copy link

tomasx commented Dec 13, 2022

Same here Keyword field in keyword_performance_report_daily table always null

@LuliRib
Copy link
Contributor Author

LuliRib commented Dec 13, 2022

Hi @tomasx , I found the problem. Hopefully when it will be approved and merged to the code it will fix the problem

@LuliRib
Copy link
Contributor Author

LuliRib commented Dec 13, 2022

it´s pr #20300

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants