Skip to content

Commit

Permalink
✨ Source Amazon Ads: add availability strategy for basic streams (#25792
Browse files Browse the repository at this point in the history
)

* Source Amazon Ads: add availability strategy for basic streams

* auto-bump connector version

* Source Amazon Ads: update metadata.yaml

---------

Co-authored-by: Octavia Squidington III <octavia-squidington-iii@users.noreply.github.com>
  • Loading branch information
1 parent 7a61bf2 commit c577e44
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 10 deletions.
Expand Up @@ -8688,7 +8688,7 @@
"sourceDefinitionId": "c6b0a29e-1da9-4512-9002-7bfd0cba2246",
"name": "Amazon Ads",
"dockerRepository": "airbyte/source-amazon-ads",
"dockerImageTag": "1.0.3",
"dockerImageTag": "1.0.4",
"documentationUrl": "https://docs.airbyte.com/integrations/sources/amazon-ads",
"icon": "amazonads.svg",
"sourceType": "api",
Expand Down
Expand Up @@ -73,7 +73,7 @@
- name: Amazon Ads
sourceDefinitionId: c6b0a29e-1da9-4512-9002-7bfd0cba2246
dockerRepository: airbyte/source-amazon-ads
dockerImageTag: 1.0.3
dockerImageTag: 1.0.4
documentationUrl: https://docs.airbyte.com/integrations/sources/amazon-ads
icon: amazonads.svg
sourceType: api
Expand Down
Expand Up @@ -852,7 +852,7 @@
supportsNormalization: false
supportsDBT: false
supported_destination_sync_modes: []
- dockerImage: "airbyte/source-amazon-ads:1.0.3"
- dockerImage: "airbyte/source-amazon-ads:1.0.4"
spec:
documentationUrl: "https://docs.airbyte.com/integrations/sources/amazon-ads"
connectionSpecification:
Expand Down
Expand Up @@ -14,5 +14,5 @@ ENTRYPOINT ["python", "/airbyte/integration_code/main.py"]



LABEL io.airbyte.version=1.0.3
LABEL io.airbyte.version=1.0.4
LABEL io.airbyte.name=airbyte/source-amazon-ads
Expand Up @@ -8,7 +8,7 @@ data:
connectorSubtype: api
connectorType: source
definitionId: c6b0a29e-1da9-4512-9002-7bfd0cba2246
dockerImageTag: 1.0.3
dockerImageTag: 1.0.4
dockerRepository: airbyte/source-amazon-ads
githubIssueLabel: source-amazon-ads
icon: amazonads.svg
Expand Down
Expand Up @@ -7,7 +7,6 @@
from typing import Any, Iterable, List, Mapping, MutableMapping, Optional

import requests
from airbyte_cdk.sources.streams.availability_strategy import AvailabilityStrategy
from airbyte_cdk.sources.streams.core import Stream
from airbyte_cdk.sources.streams.http import HttpStream
from airbyte_cdk.sources.utils.schema_helpers import expand_refs
Expand Down Expand Up @@ -91,10 +90,6 @@ def get_json_schema(self):
expand_refs(schema)
return schema

@property
def availability_strategy(self) -> Optional["AvailabilityStrategy"]:
return None


# Basic full refresh stream
class AmazonAdsStream(HttpStream, BasicAmazonAdsStream):
Expand Down
Expand Up @@ -18,6 +18,7 @@
import pendulum
import requests
from airbyte_cdk.models import SyncMode
from airbyte_cdk.sources.streams.availability_strategy import AvailabilityStrategy
from airbyte_cdk.sources.streams.http.auth import Oauth2Authenticator
from pendulum import Date
from pydantic import BaseModel
Expand Down Expand Up @@ -132,6 +133,10 @@ def __init__(self, config: Mapping[str, Any], profiles: List[Profile], authentic
def model(self) -> CatalogModel:
return self._model

@property
def availability_strategy(self) -> Optional["AvailabilityStrategy"]:
return None

def read_records(
self,
sync_mode: SyncMode,
Expand Down
1 change: 1 addition & 0 deletions docs/integrations/sources/amazon-ads.md
Expand Up @@ -94,6 +94,7 @@ Information about expected report generation waiting time you may find [here](ht

| Version | Date | Pull Request | Subject |
|:--------|:-----------|:---------------------------------------------------------|:----------------------------------------------------------------------------------------------------------------|
| 1.0.4 | 2023-05-04 | [00000](https://github.com/airbytehq/airbyte/pull/00000) | Add availability strategy for basic streams (not including report streams) |
| 1.0.3 | 2023-04-13 | [25146](https://github.com/airbytehq/airbyte/pull/25146) | Validate pk for reports when expected pk is not returned |
| 1.0.2 | 2023-02-03 | [22355](https://github.com/airbytehq/airbyte/pull/22355) | Migrate `products_report` stream to API v3 |
| 1.0.1 | 2022-11-01 | [18677](https://github.com/airbytehq/airbyte/pull/18677) | Add optional config report_record_types |
Expand Down

0 comments on commit c577e44

Please sign in to comment.