Skip to content

Commit

Permalink
Add CountDomainKeyword stream and updated to review
Browse files Browse the repository at this point in the history
  • Loading branch information
lazebnyi committed Oct 18, 2021
1 parent a6f06d0 commit ec86592
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
"dockerRepository": "airbyte/source-search-metrics",
"dockerImageTag": "0.1.0",
"documentationUrl": "https://docs.airbyte.io/integrations/sources/search-metrics"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,15 @@
"sync_mode": "full_refresh",
"destination_sync_mode": "overwrite"
},
{
"stream": {
"name": "count_domain_keyword",
"json_schema": {},
"supported_sync_modes": ["full_refresh"]
},
"sync_mode": "full_refresh",
"destination_sync_mode": "overwrite"
},
{
"stream": {
"name": "list_market_share_s7",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"count": {
"type": ["null", "integer"]
},
"balance": {
"type": ["null", "integer"]
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,10 @@ class Projects(SearchMetricsStream):
primary_key = "project_id"

def request_params(
self,
stream_state: Mapping[str, Any],
stream_slice: Mapping[str, Any] = None,
next_page_token: Mapping[str, Any] = None,
self,
stream_state: Mapping[str, Any],
stream_slice: Mapping[str, Any] = None,
next_page_token: Mapping[str, Any] = None,
) -> MutableMapping[str, Any]:
return {}

Expand Down Expand Up @@ -170,6 +170,11 @@ def path(self, **kwargs) -> str:
return "ProjectOrganicGetListBenchmarkRankingsS7.json"


class CountDomainKeyword(ProjectsChildStream, SearchMetricsStream):
def path(self, **kwargs) -> str:
return "ResearchOrganicGetCountDomainKeyword.json"


class CompetitorRankingsS7(ProjectsChildStream, SearchMetricsStream):
def path(self, **kwargs) -> str:
return "ProjectOrganicGetListCompetitorRankingsS7.json"
Expand Down Expand Up @@ -332,6 +337,7 @@ def streams(self, config: Mapping[str, Any]) -> List[Stream]:
return [
BenchmarkRankingsS7(config),
CompetitorRankingsS7(config),
CountDomainKeyword(config),
DistributionKeywordsS7(config),
KeywordPotentialsS7(config),
ListCompetitors(config),
Expand Down

0 comments on commit ec86592

Please sign in to comment.