Skip to content

Commit

Permalink
Source LinkedIn Ads: reduce records limit for Creatives Stream (#26780)
Browse files Browse the repository at this point in the history
* Source LinkedIn Ads: reduce records limit for Creatives Stream

* Source LinkedIn Ads: update comment

* Source LinkedIn Ads: update docs

* Source LinkedIn Ads: fix unit test
  • Loading branch information
artem1205 committed May 30, 2023
1 parent 87b43fb commit cc3ff52
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,5 @@ COPY source_linkedin_ads ./source_linkedin_ads
ENV AIRBYTE_ENTRYPOINT "python /airbyte/integration_code/main.py"
ENTRYPOINT ["python", "/airbyte/integration_code/main.py"]

LABEL io.airbyte.version=0.2.0
LABEL io.airbyte.version=0.2.1
LABEL io.airbyte.name=airbyte/source-linkedin-ads
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ data:
connectorType: source
definitionId: 137ece28-5434-455c-8f34-69dc3782f451
maxSecondsBetweenMessages: 21600
dockerImageTag: 0.2.0
dockerImageTag: 0.2.1
dockerRepository: airbyte/source-linkedin-ads
githubIssueLabel: source-linkedin-ads
icon: linkedin.svg
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,8 @@ class Creatives(LinkedInAdsStreamSlicing):
endpoint = "creatives"
parent_stream = Accounts
cursor_field = "lastModifiedAt"
# standard records_limit=500 returns error 400: Request would return too many entities; https://github.com/airbytehq/oncall/issues/2159
records_limit = 100

def path(
self,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ class TestLinkedInAdsStreamSlicing:
(
Creatives,
{"campaign_id": 123},
"count=500&q=criteria",
"count=100&q=criteria",
)
],
ids=["AccountUsers", "CampaignGroups", "Campaigns", "Creatives"],
Expand Down
1 change: 1 addition & 0 deletions docs/integrations/sources/linkedin-ads.md
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@ After 5 unsuccessful attempts - the connector will stop the sync operation. In s

| Version | Date | Pull Request | Subject |
|:--------|:-----------|:---------------------------------------------------------|:----------------------------------------------------------------------------------------------------------------|
| 0.2.1 | 2023-05-30 | [26780](https://github.com/airbytehq/airbyte/pull/26780) | Reduce records limit for Creatives Stream |
| 0.2.0 | 2023-05-23 | [26372](https://github.com/airbytehq/airbyte/pull/26372) | Migrate to LinkedIn API version: May 2023 |
| 0.1.16 | 2023-05-24 | [26512](https://github.com/airbytehq/airbyte/pull/26512) | Removed authSpecification from spec.json in favour of advancedAuth |
| 0.1.15 | 2023-02-13 | [22940](https://github.com/airbytehq/airbyte/pull/22940) | Specified date formatting in specification |
Expand Down

0 comments on commit cc3ff52

Please sign in to comment.