airbyte-source-google-search-console 1.5.16.dev202503252224__py3-none-any.whl → 1.6.0.dev202503282247__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {airbyte_source_google_search_console-1.5.16.dev202503252224.dist-info → airbyte_source_google_search_console-1.6.0.dev202503282247.dist-info}/METADATA +1 -1
- {airbyte_source_google_search_console-1.5.16.dev202503252224.dist-info → airbyte_source_google_search_console-1.6.0.dev202503282247.dist-info}/RECORD +9 -6
- source_google_search_console/schemas/search_analytics_keyword_page_report_minimal_dimensions.json +54 -0
- source_google_search_console/schemas/search_analytics_keyword_site_report_by_page_minimal_dimensions.json +50 -0
- source_google_search_console/schemas/search_analytics_keyword_site_report_by_site_minimal_dimensions.json +50 -0
- source_google_search_console/source.py +6 -0
- source_google_search_console/streams.py +23 -15
- {airbyte_source_google_search_console-1.5.16.dev202503252224.dist-info → airbyte_source_google_search_console-1.6.0.dev202503282247.dist-info}/WHEEL +0 -0
- {airbyte_source_google_search_console-1.5.16.dev202503252224.dist-info → airbyte_source_google_search_console-1.6.0.dev202503282247.dist-info}/entry_points.txt +0 -0
@@ -9,18 +9,21 @@ source_google_search_console/schemas/search_analytics_by_device.json,sha256=VtoF
|
|
9
9
|
source_google_search_console/schemas/search_analytics_by_page.json,sha256=KyUojZc4Lv3hPswxIJzUL5QDNsbvSugGjl_uHGF7Am4,1473
|
10
10
|
source_google_search_console/schemas/search_analytics_by_query.json,sha256=mYc1Fu1A5TWLZCApZSjjfs_urW5BRUCPQI3rw3yQjt4,1439
|
11
11
|
source_google_search_console/schemas/search_analytics_keyword_page_report.json,sha256=hCQZbpW9UNiCOrnUMkj4oQdzY0k8Hqoh1XkuKHvyvZw,1681
|
12
|
+
source_google_search_console/schemas/search_analytics_keyword_page_report_minimal_dimensions.json,sha256=hCQZbpW9UNiCOrnUMkj4oQdzY0k8Hqoh1XkuKHvyvZw,1681
|
12
13
|
source_google_search_console/schemas/search_analytics_keyword_site_report_by_page.json,sha256=lFpbShmTQhFyySc_JCdIOqMP9RfOIA15fpQN9xNXtTI,1626
|
14
|
+
source_google_search_console/schemas/search_analytics_keyword_site_report_by_page_minimal_dimensions.json,sha256=lFpbShmTQhFyySc_JCdIOqMP9RfOIA15fpQN9xNXtTI,1626
|
13
15
|
source_google_search_console/schemas/search_analytics_keyword_site_report_by_site.json,sha256=AVUl5x9jLL0FcStbTR-FMy-_A7uM-VlrJ-kdCBXWz_g,1755
|
16
|
+
source_google_search_console/schemas/search_analytics_keyword_site_report_by_site_minimal_dimensions.json,sha256=AVUl5x9jLL0FcStbTR-FMy-_A7uM-VlrJ-kdCBXWz_g,1755
|
14
17
|
source_google_search_console/schemas/search_analytics_page_report.json,sha256=-b0Y0LenTchS0q9A2aQ4hIjUjXkYF8erOtyrTMhf6MM,1776
|
15
18
|
source_google_search_console/schemas/search_analytics_site_report_by_page.json,sha256=hWKHkm1reqGGu1dNcWBe6_XkZ5tK-UaiymrYRVgxRxI,1515
|
16
19
|
source_google_search_console/schemas/search_analytics_site_report_by_site.json,sha256=rAh6LuNy7nCrrNM9MTd0qxAVc886ecQaqWRgV63OfyA,1408
|
17
20
|
source_google_search_console/schemas/sitemaps.json,sha256=coyPSZCAfzMheybfRp4WPAZCp5JF2KGRF2rWK8oC080,1775
|
18
21
|
source_google_search_console/schemas/sites.json,sha256=WNiCRuStPL1YkJiFa8FEbNJmqaERAOf9Yow6ygIumvo,383
|
19
22
|
source_google_search_console/service_account_authenticator.py,sha256=gjUxt0xFxj82uviCQNTsA1Jlee__UDhYNjE7bRO1G0U,1227
|
20
|
-
source_google_search_console/source.py,sha256=
|
23
|
+
source_google_search_console/source.py,sha256=4UJW4KUVGo5WxH9ewWBVSemXH17Iqp-eaNRtUfLNET8,10431
|
21
24
|
source_google_search_console/spec.json,sha256=WYtFvaSqWYGm1Dt2yV9G92U78Q94rh9oarbxJe3H7xo,8470
|
22
|
-
source_google_search_console/streams.py,sha256=
|
23
|
-
airbyte_source_google_search_console-1.
|
24
|
-
airbyte_source_google_search_console-1.
|
25
|
-
airbyte_source_google_search_console-1.
|
26
|
-
airbyte_source_google_search_console-1.
|
25
|
+
source_google_search_console/streams.py,sha256=1rgtlcVUyAP3oKRNQ34qIh6rwTzvlr636GiEy0RPQLs,20508
|
26
|
+
airbyte_source_google_search_console-1.6.0.dev202503282247.dist-info/METADATA,sha256=YyTR_gsHe3OcxaiSStl2wtO8Wa5Vsfm16QJ6miZG8JA,5645
|
27
|
+
airbyte_source_google_search_console-1.6.0.dev202503282247.dist-info/WHEEL,sha256=XbeZDeTWKc1w7CSIyre5aMDU_-PohRwTQceYnisIYYY,88
|
28
|
+
airbyte_source_google_search_console-1.6.0.dev202503282247.dist-info/entry_points.txt,sha256=DMcgc9bCX-Vt6hm_68pa77qS3eGdeMhg-UdlFc-XKUM,85
|
29
|
+
airbyte_source_google_search_console-1.6.0.dev202503282247.dist-info/RECORD,,
|
source_google_search_console/schemas/search_analytics_keyword_page_report_minimal_dimensions.json
ADDED
@@ -0,0 +1,54 @@
|
|
1
|
+
{
|
2
|
+
"$schema": "https://json-schema.org/draft-07/schema#",
|
3
|
+
"type": "object",
|
4
|
+
"additionalProperties": true,
|
5
|
+
"properties": {
|
6
|
+
"site_url": {
|
7
|
+
"description": "The URL of the website being monitored.",
|
8
|
+
"type": ["null", "string"]
|
9
|
+
},
|
10
|
+
"search_type": {
|
11
|
+
"description": "The type of search (e.g., web, image, video).",
|
12
|
+
"type": ["null", "string"]
|
13
|
+
},
|
14
|
+
"date": {
|
15
|
+
"description": "The date of the search data collected.",
|
16
|
+
"type": ["null", "string"],
|
17
|
+
"format": "date"
|
18
|
+
},
|
19
|
+
"country": {
|
20
|
+
"description": "The country where the search is made.",
|
21
|
+
"type": ["null", "string"]
|
22
|
+
},
|
23
|
+
"device": {
|
24
|
+
"description": "The device type used for the search (e.g., desktop, mobile).",
|
25
|
+
"type": ["null", "string"]
|
26
|
+
},
|
27
|
+
"page": {
|
28
|
+
"description": "The page URL on which the keyword appears in search results.",
|
29
|
+
"type": ["null", "string"]
|
30
|
+
},
|
31
|
+
"query": {
|
32
|
+
"description": "The search query used to find the site.",
|
33
|
+
"type": ["null", "string"]
|
34
|
+
},
|
35
|
+
"clicks": {
|
36
|
+
"description": "The number of clicks for the keyword on a specific page.",
|
37
|
+
"type": ["null", "integer"]
|
38
|
+
},
|
39
|
+
"impressions": {
|
40
|
+
"description": "The number of times the keyword appeared in search results.",
|
41
|
+
"type": ["null", "integer"]
|
42
|
+
},
|
43
|
+
"ctr": {
|
44
|
+
"description": "Click-through rate which is the percentage of clicks divided by impressions.",
|
45
|
+
"type": ["null", "number"],
|
46
|
+
"multipleOf": 1e-25
|
47
|
+
},
|
48
|
+
"position": {
|
49
|
+
"description": "The average position of the keyword on search results pages.",
|
50
|
+
"type": ["null", "number"],
|
51
|
+
"multipleOf": 1e-25
|
52
|
+
}
|
53
|
+
}
|
54
|
+
}
|
@@ -0,0 +1,50 @@
|
|
1
|
+
{
|
2
|
+
"$schema": "https://json-schema.org/draft-07/schema#",
|
3
|
+
"type": "object",
|
4
|
+
"additionalProperties": true,
|
5
|
+
"properties": {
|
6
|
+
"site_url": {
|
7
|
+
"description": "The URL of the website for which the search analytics data is retrieved.",
|
8
|
+
"type": ["null", "string"]
|
9
|
+
},
|
10
|
+
"search_type": {
|
11
|
+
"description": "The type of search conducted (e.g., web, image, video).",
|
12
|
+
"type": ["null", "string"]
|
13
|
+
},
|
14
|
+
"date": {
|
15
|
+
"description": "The date when the search data was recorded.",
|
16
|
+
"type": ["null", "string"],
|
17
|
+
"format": "date"
|
18
|
+
},
|
19
|
+
"country": {
|
20
|
+
"description": "The country from which the search query originated.",
|
21
|
+
"type": ["null", "string"]
|
22
|
+
},
|
23
|
+
"device": {
|
24
|
+
"description": "The device type used for the search query (e.g., desktop, mobile).",
|
25
|
+
"type": ["null", "string"]
|
26
|
+
},
|
27
|
+
"query": {
|
28
|
+
"description": "The search query used by the user.",
|
29
|
+
"type": ["null", "string"]
|
30
|
+
},
|
31
|
+
"clicks": {
|
32
|
+
"description": "The number of times users clicked on your website link in search results.",
|
33
|
+
"type": ["null", "integer"]
|
34
|
+
},
|
35
|
+
"impressions": {
|
36
|
+
"description": "The number of times your website link appeared in search results.",
|
37
|
+
"type": ["null", "integer"]
|
38
|
+
},
|
39
|
+
"ctr": {
|
40
|
+
"description": "Click-through rate: Number of clicks divided by the number of impressions.",
|
41
|
+
"type": ["null", "number"],
|
42
|
+
"multipleOf": 1e-25
|
43
|
+
},
|
44
|
+
"position": {
|
45
|
+
"description": "The average position of your website link in search results.",
|
46
|
+
"type": ["null", "number"],
|
47
|
+
"multipleOf": 1e-25
|
48
|
+
}
|
49
|
+
}
|
50
|
+
}
|
@@ -0,0 +1,50 @@
|
|
1
|
+
{
|
2
|
+
"$schema": "https://json-schema.org/draft-07/schema#",
|
3
|
+
"type": "object",
|
4
|
+
"additionalProperties": true,
|
5
|
+
"properties": {
|
6
|
+
"site_url": {
|
7
|
+
"description": "The URL of the site for which the search analytics data is recorded.",
|
8
|
+
"type": ["null", "string"]
|
9
|
+
},
|
10
|
+
"search_type": {
|
11
|
+
"description": "The type of search (e.g., web search, image search) that generated the analytics data.",
|
12
|
+
"type": ["null", "string"]
|
13
|
+
},
|
14
|
+
"date": {
|
15
|
+
"description": "The date for which the search analytics data is recorded.",
|
16
|
+
"type": ["null", "string"],
|
17
|
+
"format": "date"
|
18
|
+
},
|
19
|
+
"country": {
|
20
|
+
"description": "The country from which the search originated.",
|
21
|
+
"type": ["null", "string"]
|
22
|
+
},
|
23
|
+
"device": {
|
24
|
+
"description": "The type of device used by the user during the search (e.g., desktop, mobile).",
|
25
|
+
"type": ["null", "string"]
|
26
|
+
},
|
27
|
+
"query": {
|
28
|
+
"description": "The search query used by the user to find the site in search results.",
|
29
|
+
"type": ["null", "string"]
|
30
|
+
},
|
31
|
+
"clicks": {
|
32
|
+
"description": "The number of times users clicked on the search result linking to the site.",
|
33
|
+
"type": ["null", "integer"]
|
34
|
+
},
|
35
|
+
"impressions": {
|
36
|
+
"description": "The number of times the site was shown in search results to users.",
|
37
|
+
"type": ["null", "integer"]
|
38
|
+
},
|
39
|
+
"ctr": {
|
40
|
+
"description": "Click-through rate represents the percentage of users who clicked on the site's link after seeing it in search results.",
|
41
|
+
"type": ["null", "number"],
|
42
|
+
"multipleOf": 1e-25
|
43
|
+
},
|
44
|
+
"position": {
|
45
|
+
"description": "The average ranking position of the site in search results.",
|
46
|
+
"type": ["null", "number"],
|
47
|
+
"multipleOf": 1e-25
|
48
|
+
}
|
49
|
+
}
|
50
|
+
}
|
@@ -32,8 +32,11 @@ from source_google_search_console.streams import (
|
|
32
32
|
SearchAnalyticsByPage,
|
33
33
|
SearchAnalyticsByQuery,
|
34
34
|
SearchAnalyticsKeywordPageReport,
|
35
|
+
SearchAnalyticsKeywordPageReportMinimalDimensions,
|
35
36
|
SearchAnalyticsKeywordSiteReportByPage,
|
37
|
+
SearchAnalyticsKeywordSiteReportByPageMinimalDimensions,
|
36
38
|
SearchAnalyticsKeywordSiteReportBySite,
|
39
|
+
SearchAnalyticsKeywordSiteReportBySiteMinimalDimensions,
|
37
40
|
SearchAnalyticsPageReport,
|
38
41
|
SearchAnalyticsSiteReportByPage,
|
39
42
|
SearchAnalyticsSiteReportBySite,
|
@@ -182,11 +185,14 @@ class SourceGoogleSearchConsole(AbstractSource):
|
|
182
185
|
SearchAnalyticsByPage(**stream_config),
|
183
186
|
SearchAnalyticsAllFields(**stream_config),
|
184
187
|
SearchAnalyticsKeywordPageReport(**stream_config),
|
188
|
+
SearchAnalyticsKeywordPageReportMinimalDimensions(**stream_config),
|
185
189
|
SearchAnalyticsPageReport(**stream_config),
|
186
190
|
SearchAnalyticsSiteReportBySite(**stream_config),
|
187
191
|
SearchAnalyticsSiteReportByPage(**stream_config),
|
188
192
|
SearchAnalyticsKeywordSiteReportByPage(**stream_config),
|
193
|
+
SearchAnalyticsKeywordSiteReportByPageMinimalDimensions(**stream_config),
|
189
194
|
SearchAnalyticsKeywordSiteReportBySite(**stream_config),
|
195
|
+
SearchAnalyticsKeywordSiteReportBySiteMinimalDimensions(**stream_config),
|
190
196
|
]
|
191
197
|
|
192
198
|
streams = streams + self.get_custom_reports(config=config, stream_config=stream_config)
|
@@ -390,19 +390,11 @@ class SearchByKeyword(SearchAnalytics):
|
|
390
390
|
keywords_records = search_appearance_stream.read_records(
|
391
391
|
sync_mode=SyncMode.full_refresh, stream_state=stream_state, stream_slice=stream_slice
|
392
392
|
)
|
393
|
-
|
394
|
-
|
395
|
-
|
396
|
-
|
397
|
-
|
398
|
-
for keyword in keywords:
|
399
|
-
filters = {"dimension": "searchAppearance", "operator": "equals", "expression": keyword}
|
400
|
-
# Create a copy to avoid modifying the original stream_slice
|
401
|
-
stream_slice_with_filter = stream_slice.copy()
|
402
|
-
stream_slice_with_filter["dimensionFilterGroups"] = [{"groupType": "and", "filters": [filters]}]
|
403
|
-
yield stream_slice_with_filter
|
404
|
-
else:
|
405
|
-
# If no keywords are found, yield the base slice without filters
|
393
|
+
keywords = {record["searchAppearance"] for record in keywords_records}
|
394
|
+
|
395
|
+
for keyword in keywords:
|
396
|
+
filters = {"dimension": "searchAppearance", "operator": "equals", "expression": keyword}
|
397
|
+
stream_slice["dimensionFilterGroups"] = [{"groupType": "and", "filters": filters}]
|
406
398
|
yield stream_slice
|
407
399
|
|
408
400
|
def request_body_json(
|
@@ -412,8 +404,7 @@ class SearchByKeyword(SearchAnalytics):
|
|
412
404
|
next_page_token: Mapping[str, Any] = None,
|
413
405
|
) -> Optional[Union[Dict[str, Any], str]]:
|
414
406
|
data = super().request_body_json(stream_state, stream_slice, next_page_token)
|
415
|
-
|
416
|
-
data["dimensionFilterGroups"] = stream_slice["dimensionFilterGroups"]
|
407
|
+
data["dimensionFilterGroups"] = stream_slice["dimensionFilterGroups"]
|
417
408
|
return data
|
418
409
|
|
419
410
|
|
@@ -422,18 +413,35 @@ class SearchAnalyticsKeywordPageReport(SearchByKeyword):
|
|
422
413
|
dimensions = ["date", "country", "device", "query", "page"]
|
423
414
|
|
424
415
|
|
416
|
+
class SearchAnalyticsKeywordPageReportMinimalDimensions(SearchByKeyword):
|
417
|
+
primary_key = ["site_url", "date", "country", "device", "query", "page", "search_type"]
|
418
|
+
dimensions = ["date"]
|
419
|
+
|
420
|
+
|
425
421
|
class SearchAnalyticsKeywordSiteReportByPage(SearchByKeyword):
|
426
422
|
primary_key = ["site_url", "date", "country", "device", "query", "search_type"]
|
427
423
|
dimensions = ["date", "country", "device", "query"]
|
428
424
|
aggregation_type = QueryAggregationType.by_page
|
429
425
|
|
430
426
|
|
427
|
+
class SearchAnalyticsKeywordSiteReportByPageMinimalDimensions(SearchByKeyword):
|
428
|
+
primary_key = ["site_url", "date", "country", "device", "query", "search_type"]
|
429
|
+
dimensions = ["date"]
|
430
|
+
aggregation_type = QueryAggregationType.by_page
|
431
|
+
|
432
|
+
|
431
433
|
class SearchAnalyticsKeywordSiteReportBySite(SearchByKeyword):
|
432
434
|
primary_key = ["site_url", "date", "country", "device", "query", "search_type"]
|
433
435
|
dimensions = ["date", "country", "device", "query"]
|
434
436
|
aggregation_type = QueryAggregationType.by_property
|
435
437
|
|
436
438
|
|
439
|
+
class SearchAnalyticsKeywordSiteReportBySiteMinimalDimensions(SearchByKeyword):
|
440
|
+
primary_key = ["site_url", "date", "country", "device", "query", "search_type"]
|
441
|
+
dimensions = ["date"]
|
442
|
+
aggregation_type = QueryAggregationType.by_property
|
443
|
+
|
444
|
+
|
437
445
|
class SearchAnalyticsSiteReportBySite(SearchAnalytics):
|
438
446
|
primary_key = ["site_url", "date", "country", "device", "search_type"]
|
439
447
|
dimensions = ["date", "country", "device"]
|
File without changes
|