From ee0479836fa82ae5b648468a91c91b0b0b082b2c Mon Sep 17 00:00:00 2001 From: Paula Date: Thu, 26 Oct 2023 15:29:04 -0300 Subject: [PATCH 1/5] feat(adset): add learning-stage-info into adset --- .../schemas/ad_sets.json | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/airbyte-integrations/connectors/source-facebook-marketing/source_facebook_marketing/schemas/ad_sets.json b/airbyte-integrations/connectors/source-facebook-marketing/source_facebook_marketing/schemas/ad_sets.json index b33dca0342b0b..b81a562e2661f 100644 --- a/airbyte-integrations/connectors/source-facebook-marketing/source_facebook_marketing/schemas/ad_sets.json +++ b/airbyte-integrations/connectors/source-facebook-marketing/source_facebook_marketing/schemas/ad_sets.json @@ -102,6 +102,32 @@ } } }, + "learning_stage_info": { + "type": ["null", "object"], + "properties": { + "id": { + "type": ["null", "string"] + }, + "learning_stage_info": { + "type": ["null", "object"], + "properties": { + "attribution_windows": { + "type": ["null", "array"], + "items": ["null", "string"] + }, + "conversions": { + "type": ["null", "integer"] + }, + "last_sig_edit_ts": { + "type": ["null", "integer"] + }, + "status": { + "type": ["null", "string"] + } + } + } + } + }, "adlabels": { "type": ["null", "array"], "items": { From 7d2c0b56e98c12ae7a6fbfa72e1ef77f23a6c063 Mon Sep 17 00:00:00 2001 From: Paula Date: Thu, 26 Oct 2023 15:29:14 -0300 Subject: [PATCH 2/5] chore(dockerfile): add dockerfile --- .../connectors/source-facebook-marketing/Dockerfile | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 airbyte-integrations/connectors/source-facebook-marketing/Dockerfile diff --git a/airbyte-integrations/connectors/source-facebook-marketing/Dockerfile b/airbyte-integrations/connectors/source-facebook-marketing/Dockerfile new file mode 100644 index 0000000000000..520832dd6e93d --- /dev/null +++ b/airbyte-integrations/connectors/source-facebook-marketing/Dockerfile @@ -0,0 +1,10 @@ +FROM airbyte/source-facebook-marketing:latest + +COPY . ./airbyte/integration_code +RUN pip install ./airbyte/integration_code + +COPY source_facebook_marketing ./source_facebook_marketing + +# The entrypoint and default env vars are already set in the base image +ENV AIRBYTE_ENTRYPOINT "python /airbyte/integration_code/main.py" +ENTRYPOINT ["python", "/airbyte/integration_code/main.py"] \ No newline at end of file From db146f4f5ee976bd7e9b0ada59e62320b612ea08 Mon Sep 17 00:00:00 2001 From: pnavarromuttdata Date: Mon, 11 Dec 2023 17:46:13 -0300 Subject: [PATCH 3/5] feat: add new attribution_spec field to ad_sets json --- .../source_facebook_marketing/schemas/ad_sets.json | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/airbyte-integrations/connectors/source-facebook-marketing/source_facebook_marketing/schemas/ad_sets.json b/airbyte-integrations/connectors/source-facebook-marketing/source_facebook_marketing/schemas/ad_sets.json index b81a562e2661f..2c0a8ca65f98f 100644 --- a/airbyte-integrations/connectors/source-facebook-marketing/source_facebook_marketing/schemas/ad_sets.json +++ b/airbyte-integrations/connectors/source-facebook-marketing/source_facebook_marketing/schemas/ad_sets.json @@ -128,6 +128,20 @@ } } }, + "attribution_spec": { + "type": ["null", "array"], + "items": { + "type": "object", + "properties": { + "event_type": { + "type": "string" + }, + "window_days": { + "type": "integer" + } + } + } + }, "adlabels": { "type": ["null", "array"], "items": { From ef9b8f00f3d2868b52547c1e944c4a8ab33d5621 Mon Sep 17 00:00:00 2001 From: agustinavarro5 Date: Mon, 19 Feb 2024 14:57:28 -0300 Subject: [PATCH 4/5] fix: dockerfile use poetry instead of requirements.txt --- .../source-facebook-marketing/.dockerignore | 3 +++ .../source-facebook-marketing/Dockerfile | 16 ++++++++++++++-- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/airbyte-integrations/connectors/source-facebook-marketing/.dockerignore b/airbyte-integrations/connectors/source-facebook-marketing/.dockerignore index 454022891e018..a1a05e870e4e3 100644 --- a/airbyte-integrations/connectors/source-facebook-marketing/.dockerignore +++ b/airbyte-integrations/connectors/source-facebook-marketing/.dockerignore @@ -2,3 +2,6 @@ !source_facebook_marketing !setup.py !main.py +!poetry.lock +!pyproject.toml +!README.md diff --git a/airbyte-integrations/connectors/source-facebook-marketing/Dockerfile b/airbyte-integrations/connectors/source-facebook-marketing/Dockerfile index 520832dd6e93d..3318da0ca5979 100644 --- a/airbyte-integrations/connectors/source-facebook-marketing/Dockerfile +++ b/airbyte-integrations/connectors/source-facebook-marketing/Dockerfile @@ -1,10 +1,22 @@ FROM airbyte/source-facebook-marketing:latest -COPY . ./airbyte/integration_code -RUN pip install ./airbyte/integration_code +ENV POETRY_VERSION="1.7" + +RUN < Date: Wed, 14 Aug 2024 16:29:55 -0300 Subject: [PATCH 5/5] remove dockerfile --- .../source-facebook-marketing/Dockerfile | 22 ------------------- 1 file changed, 22 deletions(-) delete mode 100644 airbyte-integrations/connectors/source-facebook-marketing/Dockerfile diff --git a/airbyte-integrations/connectors/source-facebook-marketing/Dockerfile b/airbyte-integrations/connectors/source-facebook-marketing/Dockerfile deleted file mode 100644 index 3318da0ca5979..0000000000000 --- a/airbyte-integrations/connectors/source-facebook-marketing/Dockerfile +++ /dev/null @@ -1,22 +0,0 @@ -FROM airbyte/source-facebook-marketing:latest - -ENV POETRY_VERSION="1.7" - -RUN <