From 8cb3eac6c25e8bd52fc142bc4314522b7e665f03 Mon Sep 17 00:00:00 2001 From: lmilan Date: Tue, 14 Dec 2021 11:55:09 +0100 Subject: [PATCH 1/2] TDL-14271 added new table --- .../facebook-ads/foreign-keys.md | 1 + _integration-schemas/facebook-ads/leads.md | 59 +++++++++++++++++++ 2 files changed, 60 insertions(+) create mode 100644 _integration-schemas/facebook-ads/leads.md diff --git a/_integration-schemas/facebook-ads/foreign-keys.md b/_integration-schemas/facebook-ads/foreign-keys.md index 7ef82f1c5..320472be2 100644 --- a/_integration-schemas/facebook-ads/foreign-keys.md +++ b/_integration-schemas/facebook-ads/foreign-keys.md @@ -73,6 +73,7 @@ foreign-keys: - table: "campaigns" subtable: "ads" join-on: "id" + - table: "leads" - id: "campaign-id" attribute: "campaign_id" diff --git a/_integration-schemas/facebook-ads/leads.md b/_integration-schemas/facebook-ads/leads.md new file mode 100644 index 000000000..57bd34238 --- /dev/null +++ b/_integration-schemas/facebook-ads/leads.md @@ -0,0 +1,59 @@ +--- +tap: "facebook-ads" +version: "1" + +name: "leads" +doc-link: https://developers.facebook.com/docs/marketing-api/guides/lead-ads/ +singer-schema: https://github.com/singer-io/tap-facebook/blob/master/tap_facebook/schemas/leads.json +description: | + ## description of the table + +replication-method: "Key-based Incremental" + +api-method: + name: "Retrieving Leads - Bulk Read" + doc-link: "https://developers.facebook.com/docs/marketing-api/guides/lead-ads/retrieving#bulk-read" + +attributes: + - name: "id" + type: "string" + description: "The lead ID." + primary-key: true + + - name: "ad_id" + type: "string" + description: "The ad ID." + + - name: "form_id" + type: "string" + description: "The form ID." + + - name: "created_time" + type: "date-time" + description: "The time the lead was created." + replication-key: true + + - name: "field_data" + type: "array" + description: "" + subattributes: + + - name: "items" + type: "object" + description: "" + subattributes: + + - name: "properties" + type: "string" + description: "" + + - name: "values" + type: "array" + description: "" + subattributes: + + - name: "items" + type: "string" + description: "" + +--- \ No newline at end of file From 32f7748ed281f87c93a7a94102f515aed5007dbd Mon Sep 17 00:00:00 2001 From: lmilan Date: Tue, 14 Dec 2021 12:05:54 +0100 Subject: [PATCH 2/2] TDL-14271 added table description --- _integration-schemas/facebook-ads/leads.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_integration-schemas/facebook-ads/leads.md b/_integration-schemas/facebook-ads/leads.md index 57bd34238..ed727b6dd 100644 --- a/_integration-schemas/facebook-ads/leads.md +++ b/_integration-schemas/facebook-ads/leads.md @@ -6,7 +6,7 @@ name: "leads" doc-link: https://developers.facebook.com/docs/marketing-api/guides/lead-ads/ singer-schema: https://github.com/singer-io/tap-facebook/blob/master/tap_facebook/schemas/leads.json description: | - ## description of the table + The `leads` table contains information about Lead Ads in your Facebook account. replication-method: "Key-based Incremental"